// include
@import "parts/reset";
@import "bourbon/bourbon";
@import "neat/neat";
@import "parts/solarized-dark";
@import "parts/variables";
@import "parts/header";
@import "parts/footer";

/*===========================
 共通
=============================*/
body {
  font-size: rem(14);
  font-family: "メイリオ",sans-serif;
}

a {
  color: #333;
}

p {
  line-height: 1.5;
}

li {
  list-style: none;
}

/*===========================
 header
=============================*/
.header {
  @include position(fixed, 0 null null 0);
  width: 100%;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
}

.header-inner {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
}

.nav::after {
  content: "";
  display: block;
  clear: both;
}

.site-name {
  height: 50px;
  margin-right: 40px;
  float: left;
  line-height: 50px;
  a {
    padding: 15px 0;
    font-family: 'Quicksand', sans-serif;
    font-size: rem(18);
  }
}

.nav-lists {
  float: right;
}

.nav-lists {
  @include clearfix;
}

.nav-lists li {
  float: left;
}

.nav-lists li:first-child {
  margin: 0;
}

.nav-lists li a {
  display: block;
  position: relative;
  height: 50px;
  padding: 17px 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: rem(14);
  &::after {
    content: "";
    display: block;
    opacity: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #f15c22;
    -webkit-transition: .4s;
    transition: .4s;
  }
  &:hover::after {
    opacity: 1;
  }
}

.flex-pulldown-more {
  background-color: #eee;
}

.flex-pulldown-more button {
  display: block;
  position: relative;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  background: none;
  font-family: 'Quicksand', sans-serif;
  font-size: rem(14);
  outline: none;
  &::before{
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 9px;
    height: 9px;
    margin: auto;
    border: solid #666;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: transform .4s;
    transition: transform .4s;
  }
  &:hover {
    cursor: pointer;
  }
}

.open button::before {
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

/*===========================
 Conent
=============================*/
.main-visual {
  display: table;
  width: 100%;
  height: 400px;
  margin-top: 44px;
  -webkit-background: linear-gradient(-135deg, #e4a972, #9941d8);
  background: linear-gradient(-135deg, #e4a972, #9941d8);
  .content-visual {
    display: table-cell;
    color: #fff;
    vertical-align: middle;
    text-align: center;
  }
  p {
    font-size: rem(20);
  }
  a {
    display: inline-block;
    width: 150px;
    height: 40px;
    margin-top: 20px;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    -webkit-transition: .2s;
    transition: .2s;
    &:first-of-type {
      margin-right: 20px;
    }
    &:hover {
      background-color: rgba(255, 255, 255, .1);
    }
  }
}

.main {
  margin: 100px auto 0;
}

.section {
  width: 90%;
  max-width: 700px;
  margin: rem(80) auto 0;
  &:first-child {
    margin-top: 0;
  }

  h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: rem(32);
  }

  h2 {
    margin-top: rem(40);
    font-family: 'Quicksand', sans-serif;
    font-size: rem(20);
  }

  p {
    margin-top: rem(16);
  }

  li + li {
    margin-top: rem(16);
  }

  li a {
    text-decoration: underline;
    &:hover {
      text-decoration: none;
    }
  }
}


.section-inner {
  margin-top: rem(40);
}

.drag-area {
  width: 80%;
  height: 150px;;
  margin: 0 auto;
  border: 1px solid #ccc;
}

pre {
  margin-top: rem(20);
}

.hljs {
  font-size: rem(14);
  line-height: 1.5;
}

.li-browse {
  li {
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
    background-color: #eee;
  }
  .fa {
    color: #777;
    font-size: rem(32);
  }
  span {
    display: block;
    margin-top: 8px;
    font-size: rem(12);
  }
}

.wrap-options {
  margin-top: rem(40);
}

.row-option {
  margin-top: rem(20);
  &:first-child {
    margin-top: 0;
  }
  p {
    padding-left: rem(16);
  }
}

.version {
  font-size: rem(18);
  span {
    margin-left: rem(20);
    color: #888;
    font-size: rem(12);
  }
}

/*===========================
 footer
=============================*/
.footer {
  height: 200px;
  margin-top: rem(80);
  border-top: 1px solid #ccc;
  background-color: #40526b;
  text-align: center;
  line-height: 200px;
}

.copy {
  color: #fff;
  font-size: rem(14);
  a {
    color: #fff;
    text-decoration: underline;
  }
}

.twitter-share-button {
  margin-right: rem(20);
}
