/*HAPA Office*/
/*--------------------------------------------------*/

body {
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: .06em;
  line-height: 1.5;
  color: #4D4D4D;
}

@media (max-width: 767px) {
  body {
    font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.73;
    color: #1A1A1A;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 1024px;
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 95%;
  }
}

section {
  padding: 100px 0;
}

.rounded-pill {
  border-radius: 5rem;
}

/*@media (min-width: 768px) {*/
  /*section {*/
    /*padding: 30px 0;*/
  /*}*/
/*}*/

@media (max-width: 767px) {

  section {
    padding: 40px 0 60px;
  }

  .container {
    padding: 0 8%;
    max-width: unset;
  }

  .container-sp {
    padding: 5px 10px;
  }

  header > .container {
    padding-top: 5px;
    padding-left: 0;
  }
}

a.imglink:hover {
  -moz-opacity: 0.6;
  opacity: 0.6;
}



/* TOPへスクロール */
/*--------------------------------------------------*/
#scroll-top {
  display: none;
}

@media (max-width: 767px) {
  #scroll-top {
    position: fixed;
    bottom: 20px;
    right: 5px;
    display: none;
  }

  #scroll-top a {
    display: block;
    width: 100px;
    padding: 10px;
    text-align: right;
  }
}

/* FOOTER */
/*--------------------------------------------------*/

footer {
  padding: 30px;
  font-size: 10px;
  line-height: 0;
  letter-spacing: 0;
  text-align: center;
}

/* Common */
/*--------------------------------------------------*/

h1 {
  text-align: center;

  font-size: 39px;
  font-family: 游明朝, YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", HG明朝E, "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 30px;
}

h2.content-title {
  text-align: center;
  font-size: 12px;
  line-height: 1;
  margin-bottom: 50px;
  margin-top: 10px;
}

h2.content-title span {
  padding: 10px 15px;
  border: solid 1px #0071BB;

  font-size: 12px;
  font-family: Century Gothic,CenturyGothic,AppleGothic,sans-serif;
  font-weight: bold;
  color: #0071BB;
  letter-spacing: .3em;
  /*line-height: 0;*/

  /*vertical-align: text-bottom;*/
}

.btn.focus, .btn:focus {
  box-shadow: none;
}

.btn {
  color: inherit;
  background-color: initial;
}

section.concept {
  background-image: url(../img/bg-main.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;

  min-height: 600px;
}

section.concept .concept-lead {
  text-align: center;

  font-size: 14px;
  font-family: 游明朝, YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", HG明朝E, "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
  font-weight: normal;
  letter-spacing: .04em;
  line-height: 2;

  margin-bottom: 50px;
}

section.concept .hapa-logo {
  text-align: center;
}

section.history {
  background-image: url(../img/bg-history.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

section.history .btn-more-container {
  margin-top: 0;
}

section.news-release {

}

section.news-release .filter-btn-group .btn-filter {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 0;

  width: 120px;
  height: 22px;

  color: #ffffff;
  border-radius: 20px;
}

section.news-release .filter-btn-group {
  text-align: center;
  margin-bottom: 20px;
}

section.news-release .sort-btn-group {
  text-align: center;
  margin-bottom: 10px;
}

section.news-release .sort-btn-group .fa.fa-bars {
  margin-right: 5px;
}

.news-label {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 2;
  width: 120px;
  height: 22px;
  color: #ffffff;
  border-radius: 20px;
  display: inline-block;
  text-align: center;
}

button.btn-filter {
  background-color: #666;
}

button.btn-filter:not(.active) {
  opacity: .3;
}

button.btn-filter:hover {
  opacity: 1;
}

button.btn-sort:not(.active) {
  opacity: .3;
}

button.btn-sort:hover {
  opacity: 1;
}


.sp-filter-table-group {
  /*display: none;*/
}

button.btn-filter[data-target=press-release],
div[data-item=press-release] .news-label {
  background-color: #29ABE2;
}

button.btn-filter[data-target=media],
div[data-item=media] .news-label {
  background-color: #ED6279;
}

button.btn-filter[data-target=publish],
div[data-item=publish] .news-label {
  background-color: #B58FC1;
}

button.btn-filter[data-target=collaboration],
div[data-item=collaboration] .news-label {
  background-color: #39B54A;
}

button.btn-filter[data-target=announce],
div[data-item=announce] .news-label {
  background-color: #F7931E;
}

section.news-release .table-filter {
  background-color: #fff;
  border-bottom: 1px dotted #E6E6E6;
}

/*section.news-release .table.table-filter td,*/
/*section.news-release .table.table-filter th {*/
  /*border-top: none;*/
  /*border-bottom: 1px dotted #E6E6E6;*/
  /*padding-top: 20px;*/
/*}*/

/*#news-release-table td:nth-of-type(1) {*/
  /*width: 104px;*/
  /*text-align: right;*/
  /*padding-right: 0;*/
/*}*/

/*#news-release-table td:nth-of-type(2) {*/
  /*width: 180px;*/
  /*text-align: center;*/
/*}*/

/*#news-release-table td:nth-of-type(3) {*/
  /*width: 660px;*/
  /*text-align: left;*/
  /*padding-left: 0;*/
  /*padding-bottom: 20px;*/
  /*padding-right: 30px;*/
/*}*/

#news-release-table .row {
  border-top: none;
  border-bottom: 1px dotted #E6E6E6;
  padding-top: 20px;

  margin-right: unset;
  margin-left: unset;
}

#news-release-table .row div:nth-of-type(1) {
  max-width: 104px;
  text-align: right;
  padding-right: 0;
}

#news-release-table .row div:nth-of-type(2) {
  max-width: 180px;
  text-align: center;
}

#news-release-table .row div:nth-of-type(3) {
  max-width: 660px;
  text-align: left;
  padding-left: 0;
  padding-bottom: 20px;
  padding-right: 30px;
}

#news-release-table a {
  color: inherit;
}

#news-release-table a:hover {
  text-decoration: underline;
}

.btn-more-container {
  text-align: center;
  margin-top: 30px;
}

.btn-more {
  font-weight: bold;
  color: #808080;
  padding: 0;
  background-color: transparent;
}

.btn-more:before {
  content: '▲ LESS';
  margin-right: 5px;
}

.btn-more.collapsed:before {
  content: '▼ MORE';
  margin-right: 5px;
}

section.profile dl dt {
  float: left;
  width: 90px;
  margin-left: 20px;
  padding: 20px 0 15px;
}

section.profile dd {
  padding: 20px 0 15px 90px;
  border-bottom: solid 1px #F2F2F2;
  margin-bottom: 0;
  max-width: 437px;
}

section.contact {
  background-image: url(../img/bg-contact.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

#contact-complete section.contact {
  min-height: 600px;
}

section.contact .contact-tel {
  font-size: 15px;
  font-weight: bold;
}

section.contact .contact-message {
  margin-bottom: 40px;
}

section.contact .form-group small {
  font-size: 10px;
  letter-spacing: 0;
  display: inline-block;
  padding-left: 3px;
  padding-right: 3px;
  background-color: #C1272D;
  color: #ffffff;

  margin-left: 5px;
}

section.contact .form-group{
  margin-bottom: 20px;
}

section.contact .form-group label {
  margin-bottom: 10px;
}

section.contact .form-group input,
section.contact .form-group select,
section.contact .form-group textarea {
  background-color: #666;
  opacity: .85;
  padding: 10px;
  min-height: 30px;
  color: #fff;
}

.row-send-mail-form {
  margin-bottom: 40px;
}

.btn-send-mail{
  /*line-height: 0;*/
  padding: 15px 50px;
  background-color: #0071BB;
  color: #ffffff;
  border-radius: 35px;
}

.btn-send-mail:hover {
  background-color: #F15A24;
}

.btn-send-mail:active {
  /* マウスオーバー時に背景色をグレーに変更 */
  background-color: #FF0000;
}

@media (max-width: 767px) {
  section.concept,
  section.history,
  section.contact {
    background-attachment: scroll;
  }
}

/* -----------------------------------------------
 * Timeline
 * --------------------------------------------- */

.timeline-wrapper h3 {
  text-align: center;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 0;
  font-size: inherit;
}

.timeline {
  list-style: none;
  padding: 10px 0;
  position: relative;
  font-weight: 300;
  margin-bottom: 0;
}
.timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content:" ";
  width: 1px;
  background: #808080;
  left: 50%;
  margin-left: -1.5px;
}
.timeline > li {
  margin-bottom: 20px;
  position: relative;
  width: 50%;
  float: left;
  clear: left;
}

.timeline > li:last-child {
  margin-bottom: 10px;
}

.timeline > li:before, .timeline > li:after {
  content:" ";
  display: table;
}
.timeline > li:after {
  clear: both;
}
.timeline > li:before, .timeline > li:after {
  content:" ";
  display: table;
}
.timeline > li:after {
  clear: both;
}
.timeline > li > .timeline-panel {
  /*width: calc(100% - 25px);*/
  /*width: -moz-calc(100% - 25px);*/
  /*width: -webkit-calc(100% - 25px);*/
  /*float: left;*/
  /*border: 1px solid #dcdcdc;*/
  /*background: #ffffff;*/
  position: relative;

  background: #666;
  border-radius: 9px;
  opacity: .7;
  padding: 20px;

  min-width: -webkit-calc(50% - 25px);
  float: right;
  right: 25px;

}
.timeline > li.timeline-inverted > .timeline-panel:before {
  position: absolute;
  top: 26px;
  right: -15px;
  display: inline-block;
  border-top: 15px solid transparent;
  border-left: 15px solid #666;
  border-right: 0 solid #666;
  border-bottom: 15px solid transparent;
  content:" ";

  border-right-color: #666;
  border-left: 0;
  border-top: 0;
  /* margin-top: -10px; */
  /* margin-left: -20px; */

}
.timeline > li > .timeline-panel:after {
  position: absolute;
  top: 27px;
  right: -13px;
  display: inline-block;
  border-top: 14px solid transparent;
  border-left: 14px solid #666;
  border-right: 0 solid #666;
  border-bottom: 14px solid transparent;
  content: " ";
  /* width: 0; */
  /* height: 0; */
  /* border: 20px solid transparent; */
  /*border-left-color: #666;*/
  border-right: 0;
  border-top: 0;
  /* margin-top: -10px; */
  /* margin-right: -20px; */
}
.timeline > li > .timeline-badge {
  color: #ffffff;
  width: 24px;
  height: 24px;
  line-height: 50px;
  text-align: center;
  position: absolute;
  /*top: 16px;*/
  right: -12px;
  z-index: 100;
}
.timeline > li.timeline-inverted > .timeline-panel {
  /*float: right;*/

  float: left;
  left: 25px;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -14px;
  right: auto;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -14px;
  right: auto;
}

.timeline-title {
  margin-top: 0;
  color: inherit;
}
.timeline-heading {
  font-weight: bold;
  /*padding: 0 15px;*/
  color: #fff;
  margin-bottom: 5px;
}
.timeline-body > p, .timeline-body > ul {
  /*padding: 10px 15px;*/
  margin-bottom: 0;
}

.timeline-body > p {
  color: #fff;
}

.timeline i.fa.fa-circle {
  color: #808080;
}

.timeline > li.timeline-inverted {
  float: right;
  clear: right;
}
.timeline > li:nth-child(2) {
  margin-top: 60px;
}
.timeline > li.timeline-inverted > .timeline-badge {
  left: -12px;
}
.no-float {
  float: none !important;
}




@media (max-width: 767px) {
  ul.timeline:before {
    display: none;
  }

  ul.timeline {
    padding: 0;
  }

  ul.timeline > li {
    margin-bottom: 30px;
    position: relative;
    width:100%;
    float: left;
    clear: left;
  }
  ul.timeline > li > .timeline-panel {
    /*width: calc(100% - 65px);*/
    /*width: -moz-calc(100% - 65px);*/
    /*width: -webkit-calc(100% - 65px);*/
  }
  ul.timeline > li > .timeline-badge {
    /*left: 28px;*/
    /*margin-left: 0;*/
    /*top: 16px;*/
    display: none;
  }
  ul.timeline > li > .timeline-panel {
    /*float: right;*/
    background: unset;
    width: 100%;
    right: 0;
    padding: 0;
  }
  ul.timeline > li > .timeline-panel:before {
    /*border-left-width: 0;*/
    /*border-right-width: 15px;*/
    /*left: -15px;*/
    /*right: auto;*/
    display: none;
  }

  ul.timeline > li > .timeline-panel:after {
    /*border-left-width: 0;*/
    /*border-right-width: 14px;*/
    /*left: -14px;*/
    /*right: auto;*/
    display: none;
  }

  .timeline > li.timeline-inverted {
    /*float: left;*/
    /*clear: left;*/
    /*margin-top: 30px;*/
    /*margin-bottom: 30px;*/
  }

  .timeline > li.timeline-inverted > .timeline-panel {
    float: unset;
    left: 0;
    padding: 0;
  }

  .timeline > li.timeline-inverted > .timeline-panel:before {
    display: none;
  }

  .timeline > li.timeline-inverted > .timeline-badge {
    left: 28px;
  }

  .timeline > li:last-child {
    margin-bottom: unset;
  }

  .timeline > li:nth-child(2) {
    margin-top: unset;
  }

  .timeline-heading {
    color: #0071BB;
    text-align: center;
    font-size: 13px;
  }

  .timeline-body > p {
    color: #1A1A1A;
    text-align: center;
  }

  .timeline-wrapper h3 {
    display: none;
  }
}

@media (max-width: 767px) {

  h1 {
    font-size: 21px;
    font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
    margin-bottom: 20px;
  }

  h2.content-title {
    font-family: arial,sans-serif;
    margin-bottom: 40px;
  }

  h2.content-title span {
    padding: 10px;
  }

  section.concept {
    min-height: unset;
  }

  section.concept .concept-lead {
    text-align: unset;
    font-size: unset;
    font-weight: unset;
    letter-spacing: unset;
    line-height: unset;
    margin-bottom: unset;
    /*padding-bottom: 60px;*/
  }

  section.concept .hapa-logo {
    display: none;
  }

  .sp-filter-table-group {
    /*display: block;*/
    width: 100vw;
    left: -8vw;
  }

  .filter-btn-group,
  .sort-btn-group {
    display: none;
  }

  select.custom-select.filter-select,
  select.custom-select.sort-select {
    font-weight: bold;
    font-size: 13px;
    padding: 20px 5%;
    height: 60px;
    border: 1px dotted #E6E6E6;
  }

  select.custom-select.filter-select:focus,
  select.custom-select.sort-select:focus {
    outline: unset;
    box-shadow: none;
    border: 1px dotted #E6E6E6;
  }

  #news-release-table .row {
    padding-top: 30px;
  }

  #news-release-table .row div:nth-of-type(1) {
    text-align: left;
    padding-left: 0;
  }

  #news-release-table .row div:nth-of-type(2) {
    text-align: left;
    padding-left: 0;
    top: -.25em;
  }

  #news-release-table .row div:nth-of-type(3) {
    margin-top: 15px;
    padding-bottom: 30px;
  }

  .btn-more-container {
    margin-top: 20px;
    /* margin-bottom: 60px; */
    /*padding-bottom: 60px;*/
  }

  section.profile {
    padding-bottom: 60px;
  }

  section.profile .row {
     margin-right: unset;
     margin-left: unset;
  }

  section.profile .col-md-6 {
    padding: 0;
  }

  section.profile dl {
    margin-bottom: 0;
  }

  section.profile dl dt {
    margin-left: 0;
    width: 22%;
  }
  section.profile dd {
    padding-left: 22%;
  }

  section.profile dl dt:first-child {
    padding: 0;
  }
  section.profile dl dt:first-child + dd {
    padding: 0;
  }

  section.contact .col-md-12 {
    padding: 0;
  }

  section.contact .contact-message {
    margin-bottom: 30px;
  }

  section.contact .contact-tel {
    font-size: 16px;
    font-weight: bold;
  }

  section.contact .form-group label {
    font-weight: bold;
  }

  .row-send-mail-form {
    margin-bottom: 0;
  }

  section.our-service {
    padding-bottom: 0;
  }

  section.our-service ul.nav-service {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
  }

  section.our-service ul.nav-service li {
    margin: 0;
    border-top: 1px dotted #E6E6E6;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-top: 20px;
  }

  section.our-service ul.nav-service li a {
    color: inherit;
    font-weight: normal;
    outline: unset;
  }

  section.our-service ul.nav-service li:before {
    content: "\f105";
    font-family: FontAwesome;
    font-size: 14px;
    font-weight: normal;
    margin-right: 20px;
    margin-left: 20px;
  }

  section.our-service ul.nav-service li:last-child {
    border-bottom: 1px dotted #E6E6E6;
  }

  section.our-service ul.nav-icon {
    list-style: none;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
    padding-left: 0;
  }

  section.our-service ul.nav-icon li {
    display: inline-block;
    margin-right: 20px;
  }

  section.our-service ul.nav-icon li a:hover {
    color: #ffffff;
    opacity: .5;
  }
}

#cd-nav {
  display: none;
}

#cd-nav ul {
  position: fixed;
  /* width: 90%; */
  /*max-width: 400px;*/
  right: 20px;
  bottom: 40px;
  /*visibility: hidden;*/
  overflow: hidden;
  z-index: 1;
  /*transform: scale(0);*/
  /*transform-origin: 100% 100%;*/
  /*transition: transform 0.3s, visibility 0s 0.3s;*/
  list-style: none;
  padding: 0;
  margin: 0;
}

/*#cd-nav ul.is-visible {*/
  /*visibility: visible;*/
/*}*/

.cd-nav-trigger {
  position: fixed;
  bottom: 20px;
  right: 5%;
  width: 44px;
  height: 44px;

  /* image replacement */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  z-index: 2;
}

#cd-nav ul li {
}

#cd-nav ul li a {
  display: block;
  border-bottom: 1px solid #fff;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0;
  padding: 15px;
  background: rgba(153,153,153,0.8);
}

#cd-nav ul li a.mPS2id-highlight-first {
  background: #0071BB;
}

#cd-nav ul li:last-child a {
  border-bottom: none;
}

#cd-nav ul li a:hover,
#cd-nav ul li a:active {
  opacity: 1;
  background: #0071BB;
  text-decoration: none;
}
