@use "../global/common" as global;

// ------------------------------
// トピックパス
// ------------------------------
.acms-system-topicpath {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  @include global.font-size(14);
  img {
    border: 0;
    border-radius: 3px;
  }
  // 中の要素
  >li {
    display: inline-block;
    color: #999;
    vertical-align: middle;
  }
  >li:not(.site-image) {
    +li:before {
      display: inline-block;
      width: 8px;
      height: 17px;
      margin-bottom: 3px;
      vertical-align: middle;
      background: url("../images/common/topicpath.svg") no-repeat center center;
      background-size: 25px 25px;
      content: ' ';
    }
  }
  // リンク
  .link {
    display: inline-block;
    padding: 10px 5px;
    color: #333;
    line-height: 1;
    @include global.font-size(14);
    &:link {
      text-decoration: none;
    }
    &:hover {
      color: #333;
      text-decoration: none;
      background: #fff;
      border-radius: 3px;
    }
  }
}

.acms-system-topicpath-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 20px 0;
  padding: 5px 15px;
  background: #f1f1f1;
  border-radius: 3px;
}

.acms-system-view-site-wrap {
  margin: 0 0 0 auto;
}

.acms-system-view-site {
  display: none;
  float: right;
  margin: 0;

  .acms-btn {
    background: #FFF;
    border: 1px solid rgba(0,0,0,.1);

    &:hover {
      background: rgba(255,255,255,.5);
    }
  }

  [class*="acms-icon"] {
    margin: 0 5px 0 0;
  }
}

@media screen and (min-width: global.$breakpoint-md-min){
  .acms-system-view-site {
    display: inline-block;
  }
}



// ------------------------------
// トピックパス
// ------------------------------
@media (max-width: global.$breakpoint-md-max) {
  .acms-topicpath {
    // 右寄せしない
    &.acms-float-right {
      float: none;
    }
  }
}
