.hero_component{
  position: relative;
  width: 100%;
  height: calc(100vh - 150px);
  background-color: whitesmoke;
  overflow: hidden;

  .bg_container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    img{
      display: none;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 20%;
      object-fit: cover;
      object-position: center;
      transition: transform 600ms;
      filter: brightness(0.7);
    }
    img.center{ transform: translate(0, 0); display: block; }

    img.left.center-add,
    img.left.center-remove.center-remove-active{  transform: translate(-100%, 0); display: block; }

    img.right.center-add,
    img.right.center-remove.center-remove-active{ transform: translate(100%, 0);  display: block; }

    img.left.center-remove,
    img.right.center-remove,
    img.left.center-add.center-add-active,
    img.right.center-add.center-add-active{       transform: translate(0, 0);     display: block; }
  }

  .caption_container{
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
  }

  .caption{
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    line-height: 1.3em;
    box-sizing: border-box;

    font-size: 2.5rem;
    width: 95%;
//    max-width: 700px;

    padding: 10px;
    background-color: rgba(255, 255, 255, 0.95);

    @supports (-webkit-text-stroke: 1px black){
      -webkit-text-stroke: 1px black;
      color: white;
      background-color: inherit;
      padding: 0 0 0 10px;
    }

    a{
      display: inline-block;
      margin: 15px 0 0;
      padding: 3px 20px;
      color: black;
      background-color: #f5f596a6;
      border-radius: 30px;
      font-size: 0.8em;

      -webkit-text-stroke: initial;
    }

    @media screen and (min-width: 768px){
      font-size: 3.5rem;
      width: 90%;
      padding: 20px 10px;
    }
  }

  .caption{
    transition-property: transform, opacity;
    transition-duration: 300ms;

    &.center{                                   display: block; }
    &.right.center-add{                         display: block; transform: translate(50px, 0);  opacity: 0; transition-delay: 300ms; }
    &.right.center-remove.center-remove-active{ display: block; transform: translate(50px, 0);  opacity: 0; }

    &.left.center-add{                          display: block; transform: translate(-50px, 0); opacity: 0; transition-delay: 300ms; }
    &.left.center-remove.center-remove-active{  display: block; transform: translate(-50px, 0); opacity: 0; }

    &.right.center-add.center-add-active,
    &.left.center-add.center-add-active,
    &.right.center-remove,
    &.left.center-remove{                       display: block; transform: translate(0, 0);     opacity: 1; }
  }

  .navigator{
    position: absolute;
    bottom: 10px;
    left: 10px;
    li{
      list-style: none;
      display: inline-block;
      font-size: 2rem;
      padding: 8px 13px;
      border: solid 1px black;
      transition-property: background-color, border;
      transition-duration: 200ms;
      background-color: rgba(255,255,255,0.8);
      cursor: pointer;
    }
    li:not(:last-child){margin: 0 10px 0 0;}
    li.on{
      background-color: #f0f007;
      border-color: #b5b504;
    }
  }

  .sns{
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 95px;
    height: 40px;
    font-size: 0;

    @media screen and (min-width: 768px){ left: 250px; right: auto; }

    li{
      display: inline-block;
      position: relative;
      list-style: none;
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
      width: 40px;
      height: 40px;
    }
    li:not(:last-child){ margin: 0 15px 0 0; }
    li.insta{   background-image: url("../images/logo/insta.png"); }
    li.twitter{ background-image: url("../images/logo/twitter.png"); }
    a{
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }
}

.hero_component.en{
  @media screen and (min-width: 768px){
    .sns{ left: 10px; }
  }
}
