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

// --------------------------------------------------
// ヘッダーセクション固有スタイル
// --------------------------------------------------
.header {
  &__container {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #FFFFFF;
    padding-bottom: 20px;
    padding-top: 20px;
    z-index: 1;

    // SP版
    @include mq() {
      height: 50px;
      padding-bottom: 0;
      padding-top: 0;
    }
  }

  &__contents {
    @extend %contents;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    letter-spacing: 0.1em;
    line-height: 1.1;

    // SP版
    @include mq() {
      margin-top: 0;
      padding-right: 0;
      padding-left: 15px;
    }
  }

  &__title {
    font-weight: 600;

    a {
      &:hover {
        opacity: 0.7;
        transition: all 0.3s;
      }
    }

    // SP版
    @include mq() {
      font-size: 15px;
      letter-spacing: 0.1em;
      @include lineHeight(15, 16);
    }
  }

  &__menu {

    // SP版
    @include mq() {
      background-color: #FFFFFF;
      width: 100%;
      height: calc(100vh - 50px);
      transition: all 0.5s;
      position: absolute;
      top: 50px;
      left: 0;
    }

    &.close {

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

  &__nav-items {
    display: flex;
    flex-direction: row;

    // SP版
    @include mq() {
      margin-top: 62px;
      flex-direction: column;
    }
  }

  &__nav-item {
    padding-left: 60px;
    font-weight: 600;

    a:hover {
      opacity: 0.7;
      transition: all 0.3s;
    }

    // SP版
    @include mq() {
      padding-left: 0;
      margin-top: 60px;
      text-align: center;
    }
  }
}