 
body{
  overflow-x: hidden;
}
/* scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-button {
  display: none;
}
::-webkit-scrollbar-track, ::-webkit-scrollbar-track-piece {
  -webkit-border-radius: 6px;
  background-color: #e9e9e9;
}
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:horizontal {
  -webkit-border-radius:6px;
  background-color: #bbb;
}
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active {
  background-color: #666;
}

/* reset */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  min-height: 100%;
  font-size: $font-size;
}
body {
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: $font;
  color: $color;
  background-color: $bg-color;
}
header, footer, nav, menu, main, section, article, aside,
details, figcaption, figure, summary, hgroup {
  display: block;
}
h1, h2, h3, h4, h5, h6, p, img, a, pre,
blockquote, q, del, small, abbr, address, sub, sup,
em, i, strong, b, tt, code, dfn, samp, var, cite, mark,
dd, dl, dt, ol, ul, li,
fieldset, legend, caption,
form, label, button, input, select, textarea,
table, tr, th, td {
  font-weight: normal;
  font-style: normal;
  font-size: 100%;
  line-height: 1;
  font-family: inherit;
  border: 0 none;
}
ul, li {
  list-style-type: none;
}
img {
  vertical-align: middle;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  color: $color;
  text-decoration: none;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
}
audio, canvas, progress, video {
  display: inline-block;
  vertical-align: baseline;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
b, strong {
  font-weight: 700;
}
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
hr {
  box-sizing: content-box;
  height: 0;
}
button {
  vertical-align: middle;
  cursor: pointer;
  outline: none;
  appearance: button;
}
input, select, textarea {
  outline: none;
  vertical-align: middle;
  font-family: $font;
  border: 1px solid #d7d7d7;
  background: #fff;
  transition: border linear 0.2s, box-shadow linear 0.2s;
  &:hover {
    border-color: #6eb6f0;
  }
  &:not([type='range']):focus {
    border-color: #6eb6f0;
    background: #e1f1fd;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 5px rgba(82, 168, 236, 0.6);
  }
}
input {
  &[type='button'],
  &[type='reset'],
  &[type='submit']{
    cursor: pointer;
    appearance: button;
  }
  &[type='radio']{
    margin-right: 5px;
    height: 18px;
    width: 18px;
  }
  &::-webkit-input-placeholder{
    color: $ph-color;
  }
}
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  height: auto;
}
textarea {
  display: block;
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  height: 100px;
  background-color: $bg-color;
  resize: none;
  &::-webkit-input-placeholder{
    color: $ph-color;
  }
}
select {
  padding: 0 5px;
  appearance: none;
  &::-ms-expand {
    display: none;
  }
}

/* webkit forms */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  input[type=checkbox], input[type=radio], select {
    position: relative;
    -webkit-appearance: none;
    -webkit-user-select: none;
  }
  input[type=checkbox] {
    bottom: 1px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
  }
  input[type=radio] {
    bottom: 1px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    border-radius: 50%;
  }
  input[type=checkbox]:checked::before, input[type=checkbox]:checked::after {
    position: absolute;
    content: '';
    height: 2px;
    background-color: #666;
  }
  input[type=checkbox]:checked::before {
    left: 3px;
    top: 6px;
    width: 72%;
    -webkit-transform: rotate(120deg);
  }
  input[type=checkbox]:checked::after {
    left: 2px;
    top: 8px;
    width: 4px;
    -webkit-transform: rotate(-150deg);
  }
  input[type=radio]:checked::before {
    display: block;
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    left: 3px;
    content: '';
    background-color: #377bcb;
    border-radius: 50%;
  }
  input[type=checkbox]:active, input[type=radio]:active, select:active {
    background-image: -webkit-linear-gradient(#fcfcfc, #f8f8f8 38%, #e7e7e7);
    box-shadow: none;
    text-shadow: none;
  }
  input[type=checkbox]:disabled, input[type=radio]:disabled {
    background-color: #e5e5e5;
    box-shadow: none;
    text-shadow: none;
  }
  select:disabled {
    background-image: -webkit-linear-gradient(#f8f8f8,#f8f8f8 38%,#f8f8f8);
    color: #999;
  }
}

/* layout */
$columns: 12;
@for $column from 1 through $columns {
  .col-#{$column} {
    position: relative;
    @if $column == $columns {
      overflow: hidden;
    }
    @else {
      float: left;
    }
    width: percentage($column / $columns);
    @include clearfix;
  }
}
.clearfix {
  @include clearfix;
}
.clear {
  display: block;
  height: 0;
  content: "020";
  clear: both;
  visibility: hidden;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.fixed {
  position: fixed !important;
}
.hide {
  display: none;
}
.hidden {
  display: none !important;
  visibility: hidden;
}
.bk100 {
  display: block;
  width: 100%;
}
.container {
  @include container;
}

/* text */
.ellipsis {
  @include ellipsis;
}
.break {
  word-break: break-all;
  word-wrap: break-word;
}
.underline {
  text-decoration: underline;
}
.noindent {
  text-indent: 0;
}

