// --------------------------------------------------
// 共通ファイル読み込み
// --------------------------------------------------
@use "common" as *;

// --------------------------------------------------
// ポートフォリオセクション固有スタイル
// --------------------------------------------------
.portfolio {
  &__container {
    @extend %contents;
  }

  &__contents {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

    // SP版
    @include mq() {
      flex-direction: column;
      align-items: center
    }

  }

  &__header {
    @extend %title;

    // SP版
    @include mq() {
      padding-top: 90px;
    }
  }

  &__title {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 1.5;

    // SP版
    @include mq() {
      font-size: 21px;
      text-align: center;
    }

    &:nth-child(2) {
      // HTMLCSSコーディング
      margin-bottom: -60px;

      // SP版
      @include mq() {
        margin-top: 12px;
      }
    }

    &:nth-child(4) {
      margin-top: 90px;
    }

    &::before {
      content: "";
      padding-right: 12px;
      display: inline-block;
      height: 40px;
      transform: translateY(5px);
      border-left: solid 10px #000000;

      // SP版
      @include mq() {
        display: none;
      }

    }

    &--small {
      margin-top: 14px;
      margin-bottom: -50px;
      font-size: 25px;
      font-weight: bold;
      @include lineHeight(25, 28);

      // SP版
      @include mq() {
        font-size: 18px;
        margin-bottom: -60px;
        @include lineHeight(18, 24);
        text-align: center;

      }

      &:nth-child(7) {
        margin-top: 70px;
        margin-bottom: 10px;
      }

      br {
        display: none;

        // SP版
        @include mq() {
          display: block;
        }

        // SP小
        @include mq("small") {
          display: none;
        }
      }
    }
  }


  &__item {
    margin-top: 70px;
    display: flex;
    flex-direction: column;

    width: calc((100% - 60px)/2);

    // SP版
    @include mq() {
      width: 100%;
    }

    img {
      width: 100%
    }

  }

  &__thumb {
    @extend %border;

    // SP版
    @include mq() {
      width: 100%;
    }
  }


  &__data-title {
    margin-top: 17px;

    font-size: 25px;
    font-weight: bold;

    // SP版
    @include mq() {
      margin-top: 0;
      padding-top: 9px;
      font-size: 18px;
      @include lineHeight(18, 22);
      text-align: center;
    }
  }

  &__data-design {
    margin-top: 6px;

    font-size: 15px;
    @include lineHeight(15, 35);

    // SP版
    @include mq() {
      text-align: center;
      font-size: 11px;
      @include lineHeight(11, 16);
    }

    span {
      padding-right: 20px;
      display: inline-block;

      // SP版
      @include mq() {
        padding-right: 18px;
        font-size: 9px;
      }
    }

    a {
      display: inline-block;
      border-bottom: solid 1px;
      font-size: 18px;
      line-height: 1.1;

      // SP版
      @include mq() {
        font-size: 11px;
      }
    }
  }

  &__data-dl {
    display: flex;
    flex-direction: row;

    // SP版
    @include mq() {
      justify-content: center
    }
  }

  &__dl-btn {
    @extend %border;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    width: 195px;
    height: 43px;
    border-radius: 5px;
    background-color: #F1F1F1;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s;
    text-align: center;

    &:nth-child(odd) {
      margin-right: 12px;
    }

    // SP版
    @include mq() {
      width: 144px;
      height: 31px;
      font-size: 13px;
    }

    // SP小
    @include mq("small") {
      width: getVw(144, 375);
      font-size: getVw(13, 375);
    }

    &:hover {
      background-color: #707070;
      color: #FFFFFF;
      opacity: 1;
    }

    a {
      display: block;
      padding: 25px;
      color: inherit;
      opacity: 1;

    }

  }

  &__item-pop {
    width: calc((100% - 60px)/3);

    img{
      width: 100%;
    }

    // SP版
    @include mq() {
      width: 100%;
      margin-bottom: 60px;
    }
  }
}