@import "@/styles/mixins.scss";
@import "@/styles/variables.scss";

@mixin link() {
  color: $B3 !important;
  &:hover {
    color: #FFF !important;
  }
}

.summary {
  text-align: center;
  h4 {
    @include h4();
    margin: 4rem auto;
    font-size: 18px;
  }
}

.banner_link {
  @include link;
}

.banner_content {
  @include on-desktop() {
    bottom: 15%;
  }
  @include on-mobile() {
    bottom: 10%;
  }
}

.NavBarContainer {
  position: sticky;
  top: 0;
  background-color: #FFF;
  border-bottom: 1px solid lightgray;
  z-index: 2;
  @include box-shadow();
}

.NavBar {
  position: fixed;
  top: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  a {
    background-color: #FFFFFF;
    text-align: center;
    @include transition();
    @include h3();
    @include on-desktop() {
      padding: .5rem 0;
      font-size: 20px;
      width: 25%;
    }
    @include on-mobile() {
      padding: 1rem .5rem;
      font-size: 14px;
    }
    &:hover {
      background-color: lightgray;
    }
  }
}

.introduction {
  padding-bottom: 4rem;
  &_header {
    text-align: center;
  }
  &_body {
    margin-top: 4rem;
    display: flex;
    @include on-desktop() {
      flex-direction: row;
      img {
        max-width: 900px;
        width: 640px;
      }
    }
    @include on-mobile() {
      flex-direction: column;
    }
    &_end {
      @include on-desktop() {
        margin-left: 4rem;
      }
      @include on-mobile() {
        margin-top: 4rem;
      }
    }
  }
}

.computeNestFeatures {
  padding: 4rem 0;
  h2 {
    text-align: center;
  }
  &_body {
    margin-top: 4rem;
    display: flex;
    @include on-desktop() {
      flex-direction: row;
    }
    @include on-mobile() {
      flex-direction: column;
    }
  }
}

.IntroductionItem {
  margin-bottom: 2.5rem;
  h3 {
    @include h3();
    font-size: 20px;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #000;
  }
  p {
    @include p1();
    margin-bottom: .5rem;
  }
}

.Contact {
  width: 100%;
  //display: flex;
  //justify-content: flex-end;
  //justify-content: center;
  //align-items: center;
  padding: calc((250px - 72px) / 2) 0;
  &_container {
    display: flex;
    @include on-desktop() {
      justify-content: flex-end;
    }
    @include on-mobile() {
      justify-content: space-around;
    }
    width: 100%;
    height: 72px;
    @include on-desktop() {
      flex-direction: row;
    }
    @include on-mobile() {
      flex-direction: column;
    }
    &_button {
      @include on-desktop() {
        margin-left: 64px;
      }
      @include on-mobile() {
        margin-top: 16px;
      }
      text-align: center;
      div {
        margin-top: .5rem;
        color: #FFF;
      }
      button, a {
        @include link;
      }
    }
  }
}

.ProductAdvantage {
  padding-top: 4rem;
  & > h2 {
    text-align: center;
  }
}

.FeatureItem {
  @include on-desktop() {
    padding: 0 2rem;
  }
  @include on-mobile() {
    padding: 4rem 0;
  }
  &_header {
    display: flex;
    align-items: center;
    img {
      margin-left: 3rem;
    }
  }
  &_body {
    @include p1();
    margin-top: 2rem;
  }
}

.FAQ {
  display: flex;
  flex-direction: column;
  //align-items: center;
  padding: 4rem 0;
  &_header {
    margin: 2rem auto;
  }
  &_body {
    &_class {
      h4 {
        margin: 1rem 0;
      }
      &_item {
        padding-bottom: 1.5rem;
        &_qa {
          padding: 1rem;
          $border-style: 1px solid lightgray;
          border-top: $border-style;
          &:last-child {
            border-bottom: $border-style;
          }
          dt {
            cursor: pointer;
          }
          dd {
            @include transition();
            height: 0;
            overflow: hidden;
          }
          &_selected {
            dd {
              height: auto;
              padding-top: .5rem;
            }
          }
          table {
            max-width: 500px;
            overflow: auto;
            padding: 1rem 0;
            td {
              padding: 0 .25rem;
            }
          }
        }
      }
    }
  }
  a {
    text-decoration: underline;
    color: $B1;
  }
}
