@charset "UTF-8";

.intro {
  padding: 0;
  overflow: hidden;
  margin: calc(2vw + 20px) 0 calc(2vw + 30px);

  + #toclist > section:first-child {
    margin-top: 0;
  }

  @media(max-width: 767px) {
    padding: 0;
  }

  h1 {
    position: relative;
    padding-bottom: 60px;

    @media(max-width: 767px) {
      padding-bottom: 40px;
    }

    &:last-child {
      margin-bottom: 0;
    }

    &:after {
      content: "";
      position: absolute;
      left: 2px;
      bottom: 20px;
      height: 8px;
      background: linear-gradient(85deg, $color-gradient-01 0%, $color-gradient-02 50%, $color-gradient-03 100%);
      background: linear-gradient(85deg, var(--theme-color-gradient-01, $color-gradient-01) 0%, var(--theme-color-gradient-02, $color-gradient-02) 50%, var(--theme-color-gradient-03, $color-gradient-03) 100%);
      width: calc(50vw + 440px);

      @media(max-width: 1199px) {
        width: calc(50vw + 460px);
      }

      @media(max-width: 999px) {
        width: calc(100% + 30px);
      }

      @media(max-width: 767px) {
        width: calc(100vw - 20px);
        bottom: 10px;
        left: 1px;
      }
    }
  }

  > p:first-of-type, > div.text:first-of-type {
    &::first-letter
    &:not(.no-initial){
      font-size: 3.3em;
      line-height: 1;
      margin: -0.03em 0.08em -0.2em -0.02em;
      font-weight: 400;
      display: inline-block;
      vertical-align: top;
      float: left;
    }
  }

}

[data-browser="firefox"] {
  .intro > p:first-of-type::first-letter, .intro > .text:first-of-type::first-letter {
    margin-top: 0.113em;
  }
}
