.layout-document {
  @include mobile {
    padding-top: 100px;
  }

  > .header {
    width: 250px;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 0;

    @include mobile {
      width: 100%;
      height: auto;
      position: fixed;
      z-index: 100000;
      top: 0;
      left: 0;
    }
  }

  > .contents {
    margin-left: 250px; 
    background-color: white;

    @include mobile {
      margin: auto;
      width: 98%;
    }
  }

  > .footer {
    width: 250px;
    height: 4.5rem;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100;

    @include mobile {
      background-color: rgba(0,0,0,0.8);
      width: 100%;
      height: auto;
      position: static;
      padding-top: 10px;
      padding-bottom: 10px;
      z-index: 0;
    }
  }
}

.layout-document >.header {
  .logo {
    margin-top: 80%;
    margin-bottom: 25px;


    @include mobile {
      margin-top: auto;
      margin-bottom: auto;
      border-bottom: 1px solid rgba(white, 0.3);
      padding-top: 10px;
      padding-bottom: 10px;
    }
  }

  .menu-list {
    font-family: $font-julius-sans;
    overflow: hidden;

    @include mobile {
      // for transition
      max-height: 10em;
    }

    > .item {
      width: 50%;
      display: block;
      float: left;
      text-align: center;
      padding: 1rem 0;
      margin: 3px 0;
      border-color: rgba(white, 0.3);

      &:nth-child(2n) {
        border-right: none;
      }
    }
  }
}

.layout-document .contents {
  > .container {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;

    > .article {
      margin-bottom: 80px;
    }
  }
}

// TRANSISION
@include mobile {
  .layout-document >.header {
    .logo {
      transition: all 0.2s linear;
    }

    .menu-list {
      transition: all 0.2s linear;
    }

    &.-mini {
      .logo {
        padding: 0;
      }

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

      .logo .image {
        display: inline-block;
      }

      .logo .title {
        font-size: 12px;
        margin: 0;
        display: inline-block;
        position: relative;
        top: -8px;
      }

      .menu-list {
        max-height: 0;
      }
    }
  }
}
