:root {
  /* --ixs-blue: #004382; */
  --ixs-blue: #182460;
  --ixs-blue-blight: #004382;
  --ixs-blue-text: #19427c;
  --inner-width: 980px;
}

.main_visual {
  aspect-ratio: 1 / 1;
  background-position: center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-image: url(../images/mv_bg_sp.jpg?v=20251119);
}

#banner {
  width: auto;
  position: absolute;
  opacity: 0;
  right: 21.5vw;
  bottom: 4.8vw;

  img {
    width: auto;
    height: min(15vw, 200px);
    max-height: 200px;
  }
}

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

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

@media screen and (min-width: 640px) {
  .main_visual {
    aspect-ratio: inherit;
    max-height: 698px;
    background-image: url(../images/mv_bg_pc.jpg?v=20251119);
  }

  #banner {
    right: inherit;
    bottom: inherit;
    top: min(40px, 4vw);
    left: min(64px, 4vw);
  }
}

.main_visual_inner {
  position: relative;
  max-width: 1366px;
  margin: 0 auto;

  img {
    display: block;
  }
}

.ge_demo {
  iframe {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: var(--inner-width);
    height: auto;
    display: block;
    margin: 2rem auto;
  }
}

.bl_about_slide__ph {
  position: relative;
  z-index: 1;
}

.bl_about_slide__txt {
  padding: 2rem;
}

@media screen and (min-width: 640px) {
  .bl_about_slide__txt {
    max-width: 50vw;
  }
}

/* COMMON */

.bl_cont_ttl {
  margin-bottom: 5rem;
}

@media screen and (min-width: 640px) {
  .bl_cont_ttl {
    margin-bottom: 8rem;
  }
}

/* Header */
header {
  .anchor_links {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background-color: #003366;

    ul {
      flex-grow: 1;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: start;
      column-gap: 1.5rem;
      /* row-gap: 1rem; */
      padding: 0 1rem;
    }

    li {
      a {
        display: block;
        width: inherit;
        position: relative;
        padding-left: 20px;
        font-size: 1.4rem;

        br {
          display: none;
        }
      }
    }

    a:before {
      bottom: 6px;
      content: "";
      position: absolute;
      left: 0px;
      width: 8px;
      height: 8px;
      border-top: 2px solid #fff;
      border-right: 2px solid #fff;
      transform: rotate(134deg);
    }
  }

  .bl_navi__pc__sub {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* width: 58%; */
    min-width: 620px;
  }

  .header-sp-inner {
    a:not([href^="tel:"]) {
      br {
        display: none;
      }
    }
  }
}

/* Anchors (in main container) */
main {
  .anchor_links {
    background-color: #004382;

    ul {
      display: flex;
      flex-wrap: wrap;
      gap: 4rem;
      margin: 0 auto;
      padding: 2rem;
      justify-content: center;
      align-items: center;
    }

    li {
      display: block;
      width: 40%;

      a {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        aspect-ratio: 1 / 1;
        height: 100%;
        background-image: url(../../lp_common/images/subnav_00.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        color: white;
        font-weight: 600;
        text-align: center;
      }

      a:hover {
        opacity: 0.5;
        text-decoration: none;
      }

      a:after {
        bottom: 15px;
        content: "";
        position: absolute;
        left: 0px;
        right: 0;
        margin: auto;
        width: 8px;
        height: 8px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(134deg);
      }
    }
  }



  @media screen and (min-width: 640px) {
    .anchor_links {
      ul {
        justify-content: space-between;
        max-width: var(--inner-width);
      }

      li {
        width: auto;

        a {
          width: 134px;
        }
      }
    }
  }
}

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

.mt-8 {
  margin-top: 8rem !important;
}

.-mt-4 {
  /* margin-top: -2rem !important; */
}

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

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

strong {
  display: inline-block;
  /* padding: 0.2em 0.5em;
  font-weight: 800;
  background-color: #ECEC7A; */
  background-color: yellow;
  font-weight: bold;
  padding-inline: 1em;
}

.mobile_hidden {
  display: none;
}

.mobile_show {
  display: inline;
}

@media screen and (min-width: 640px) {
  .-mt-4 {
    margin-top: -4rem !important;
  }

  .mobile_hidden {
    display: inline;
  }

  .mobile_show {
    display: none;
  }
}

.is_button {
  background-color: var(--ixs-blue-blight);
  color: #fff;
  text-decoration: none;
  padding: 2rem 2.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border-radius: 1rem;

  &:visited {
    color: #fff;
  }

  &:hover {
    text-decoration: none;
    opacity: 0.8;
    transition-duration: 0.4s;
  }

  &:before {
    content: "";
    display: inline-block;
    margin-right: 0.5em;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-top: 0.5em solid transparent;
    border-bottom: 0.5em solid transparent;
    border-left: 0.8em solid #fff;
  }

  &.text_large {
    font-size: 2.4rem;
  }
}

.container {
  padding: 80px 2rem 100px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 640px) {
  .container {
    max-width: 1280px;
  }
}

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

figure.thin {
  max-width: calc(var(--inner-width) * 0.6);
}

hr.spacer {
  border: 0;
  box-shadow: none;
  padding: 12rem 0;
}

.horizontal_block {
  display: flex;
  flex-direction: column;

  .photo {
    margin-top: 1rem;
  }

  .text {
    margin-top: 2rem;
    /* color: var(--ixs-blue-text); */
    color: var(--ixs-blue);
    line-height: 1.6;

    h3 {
      color: var(--ixs-blue-blight);
      margin-top: 1rem;
      font-weight: 700;
      font-size: 2rem;
    }

    p {
      margin-top: 2rem;
    }
  }

  &.bg_grid {
    padding: 2rem;
    background-image: url(../../lp_common/images/bg_line_blue.png);
    background-repeat: repeat;
    background-size: 1280px 526px;

    h3 {
      margin-top: 0;
    }
  }
}

@media screen and (min-width: 640px) {
  .horizontal_block {
    max-width: var(--inner-width);
    margin: 4rem auto;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: start;

    .photo {
      margin-top: 0;
      padding: 2rem;
      width: 50%;
      flex-shrink: 0;
    }

    .text {
      padding: 2rem;
      margin-top: 0;
      flex-grow: 1;

      h3 {
        font-size: 2.85rem;
      }

      p {
        font-weight: 400;
      }
    }
  }

  .horizontal_reverse {
    flex-direction: row-reverse;
  }
}

ul.caution {
  max-width: var(--inner-width);
  margin-left: auto;
  margin-right: auto;
  color: var(--ixs-blue-text);

  li {
    margin-top: 1rem;
    list-style: none;
    position: relative;
    padding-left: 1.5em;

    &:before {
      content: "※";
      position: absolute;
      left: 0;
      color: var(--ixs-blue-text);
      font-weight: bold;
    }
  }
}

/* YouTube */
.youtube-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.bl_about_slide__ph.crop {
  overflow: hidden;
  aspect-ratio: 1.7 / 1;

  video {
    width: 101%;
    max-width: inherit;
    height: auto;
    display: block;
    margin-left: -2px;
  }
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.footer_logo {
  width: 76px;
  margin-left: auto;
  margin-right: auto;
}

/* 新規タブリンク */
.popup {
  position: relative;
  display: flex;
  /* gap: .8rem; */
  align-items: center;
  color: var(--ixs-blue);
  line-height: 1;

  &::before {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    color: #fff;
    background-color: var(--ixs-blue-blight);
    width: 1.8rem;
    height: 1.8rem;
    aspect-ratio: 1 / 1;
  }

  &::after {
    content: "";
    position: absolute;
    left: 0.3rem;
    top: 0;
    bottom: 0;
    width: 0.8rem;
    height: 0.8rem;
    margin: auto;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(-45deg);
  }

  img {
    display: block;
    width: 2rem;
    height: 2rem;
    margin-left: 0.25rem;
    margin-top: 2px;
  }
}

/* 導入の流れ＋ご利用料金 */
.flow_price {
  position: relative;
  background-color: #69badd;

  .container {
    padding: 0;
  }

  h3 {
    color: #fff;
    font-size: 2.4rem;
  }

  .flow,
  .price {
    position: relative;
    z-index: 2;
    padding: 4rem;

    p {
      color: #fff;
      margin-top: 2rem;
    }

    .note {
      color: #000;
      font-size: 1.4rem;
    }
  }

  figure {
    margin: 3rem 1.4rem 1.6rem;
  }

  .flow {
    ol {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: 1fr;
      grid-column-gap: 20px;
      grid-row-gap: 0px;

      li {
        display: flex;
        flex-direction: column;
      }
    }

    dl {
      height: 100%;
      padding: 1rem;
      background-color: #fff;
      border-radius: 6px;
      font-size: 1.4rem;
      color: #000;
    }

    dt {
      font-weight: bold;
      text-align: center;
    }

    dd {
      margin-top: 1rem;
    }
  }

  .price {
    background-color: #008fcd;

    figure {
      margin-left: 0;
      margin-right: 0;
    }
  }
}

@media screen and (min-width: 640px) {
  .flow_price {

    &::after {
      content: "";
      position: absolute;
      width: 40vw;
      height: 100%;
      right: 0;
      top: 0;
      background-color: #008fcd;
    }

    .container {
      display: flex;
      flex-wrap: nowrap;

      h3 {
        font-size: 3.2rem;
      }
    }

    .flow {
      ol {
        grid-template-columns: repeat(4, 1fr);
      }
    }
  }
}

@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(.38, 0, .37, 1);
  animation-duration: 0.65s;
  animation-delay: 300ms;
  animation-fill-mode: forwards;
}