@charset "utf-8";

$def-font: Arial, "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
$blue: #036;
$blue-hover: #024;
$pink: #e37;
$pink-hover: #d25;

html {
  height: 100%;
}
body {
  height: 100%;
  font: {
    family: $def-font;
    size: 15px;
    weight: normal;
  }
}
@media (max-width: 767px) {
  body {
    padding-top: 50px;
  }
}
#container {
  position: relative;
  min-height: 100%;
}
.container {
  padding: 0 20px;
}

/* Navbar */
.navbar {
  margin: 0;
  .container {
    padding: 0;
  }
}
@media (max-width: 767px) {
  .navbar {
    width: 100%;
    position: fixed;
    top: 0;
  }
}
@media (max-width: 767px) {
  .navbar .container {
    padding: 0 20px;
  }
}
.navbar-default {
  background: $blue;
  border: 0;
  .navbar-nav > {
    li > a {
      color: #fff;
      &:hover {
        background: $blue-hover;
        color: #eee;
      }
    }
    .open > a {
      background: $blue-hover;
      color: #eee;
      &:focus, &:hover {
        background: $blue-hover;
        color: #eee;
      }
    }
  }
}
.dropdown-menu {
  background: rgba(250, 250, 250, 0.9);
  li a:hover {
    background: rgba(220, 220, 220, 0.75);
  }
}
.navbar-default .navbar-toggle {
  color: #fff;
  border-color: #fff;
  padding: 5px 10px;
  border-radius: 0;
  &:hover, &:focus {
    background: $blue-hover;
  }
}
@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #fff;
    &:hover {
      background: $blue-hover;
      color: #eee;
    }
  }
}

/* Header */
header .btn-success {
  background: $pink;
  border: 1px solid $pink-hover;
  &:hover {
    background: $pink-hover;
    border: 1px solid $pink-hover;
  }
}
.headwrap {
  display: table;
  width: 100%;
  position: relative;
  z-index: 9990;
  padding: 0 0 10px;
  .hdL {
    display: table-cell;
    padding: 10px 0 0 10px;
    h1 {
      display: inline-block;
      vertical-align: top;
    }
    .btn-group {
      display: inline-block;
      vertical-align: top;
      padding: 22px 0 0;
    }
  }
  .hdR {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    padding: 10px 10px 0 0;
    text-align: right;
  }
}
header h1 {
  margin: 0 0 10px;
}
#header-xs h1 img {
  margin: 10px auto 0;
}

/* Main Image */
#mainimg {
  margin: -90px 0 0;
  text-align: center;
  img {
    margin: 0 auto;
  }
}
@media (max-width: 767px) {
  #mainimg {
    margin: 10px 0;
  }
}

/* Main */
#main {
  padding-bottom: 210px;
}
@media (max-width: 767px) {
  #main {
    padding-bottom: 170px;
  }
}

/* Breadcrumb */
.breadcrumb {
  margin: 20px 0;
  li {
    font-size: small;
  }
  > li + li:before {
    content: ">";
  }
}

/* Footer */
#footer {
  width: 100%;
  background: $blue;
  color: #fff;
  height: 190px;
  position: absolute;
  bottom: 0;
  font-size: small;
}
#footer-xs {
  width: 100%;
  background: $blue;
  color: #fff;
  height: 150px;
  position: absolute;
  bottom: 0;
  text-align: center;
  font-size: small;
}
footer {
  a {
    color: #eee;
    &:hover {
      color: #fff;
    }
  }
  .btn-default {
    color: $blue;
  }
}
#footer {
  .container {
    border-top: 1px solid #ddd;
    margin: 20px auto 0;
    padding-top: 20px;
  }
  nav ul {
    margin: 0 auto 10px;
    text-align: center;
    li {
      display: inline;
      padding: 0 10px;
      border-right: 1px solid #ddd;
      white-space: nowrap;
      &:last-child {
        border-right: 0;
      }
    }
  }
  p.copyright {
    font-family: Verdana, "Helvetica Neue", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
    line-height: 1.1;
    color: #ccc;
    text-align: center;
  }
}
.bn-fixed {
  position: fixed;
  top: 175px;
  right: 0;
}

/* Form Control */
.form-control {
  display: inline;
  height: 30px;
  padding: 3px 5px;
  line-height: 1.1;
  color: #555;
  border: 1px solid #ccc;
  vertical-align: middle;
}
.select {
  height: 30px;
  padding: 3px 5px;
  line-height: 1.1;
  color: #555;
  border: 1px solid #ccc;
  vertical-align: middle;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.textarea {
  display: inline;
  padding: 3px 5px;
  line-height: 1.4;
  color: #555;
  border: 1px solid #ccc;
  vertical-align: middle;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
label {
  display: inline;
  margin: 0;
  font-weight: normal;
}
input {
  &[type=checkbox], &[type=radio] {
    margin: 0;
  }
}

/* Table */
.table {
  margin: 0 auto;
}
.table-bordered > {
  tbody > tr > {
    td, th {
      border: 1px solid #ccc;
      font-size: 14px;
    }
  }
  tfoot > tr > {
    td, th {
      border: 1px solid #ccc;
      font-size: 14px;
    }
  }
  thead > tr > {
    td, th {
      border: 1px solid #ccc;
      font-size: 14px;
    }
  }
}
.table > {
  tbody > tr > th, tfoot > tr > th, thead > tr > th {
    background: #e9edf4;
    vertical-align: middle;
    font-size: 14px;
  }
  tbody > tr > td, tfoot > tr > td, thead > tr > td {
    background: #fafafa;
  }
}
.c_th > {
  tbody > tr > th, tfoot > tr > th, thead > tr > th {
    text-align: center;
  }
}
.note_s {
  display: block;
  font-size: 90% !important;
  line-height: 1.2;
  padding: 5px 0 0;
}

/* Misc */
.alert {
  color: #333;
  strong {
    display: block;
    color: #900;
  }
}
.spcr-br {
  margin-right: 5px;
}
@media (max-width: 767px) {
  .spcr-br {
    margin-right: 0;
    &:after {
      content: "";
      display: block;
      height: 5px;
    }
  }
}
