@use 'global/common' as global;

/* ------------------------------
 リスト
------------------------------- */
.acms-list-group-heading {
  padding: 5px 0;
  margin-bottom: 0;
  color: global.$acms-color-black;
  border-bottom: 2px solid global.$acms-color-black;

  a {
    color: inherit;
    text-decoration: none;
  }
}

.acms-list-group {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid global.$acms-list-group-border-color;

  .acms-list-group-heading + & {
    border-top: 0;
  }

  + .acms-list-group {
    margin: 0 0 10px;
  }
}

.acms-list-group-item {
  display: block;
  padding: 10px;
  color: global.$acms-color-black;
  text-decoration: none;
  border-bottom: 1px solid global.$acms-list-group-border-color;

  &:hover {
    background: global.$acms-color-gray30;
  }

  &:hover,
  &:visited,
  &:active,
  &:focus {
    color: global.$acms-color-black;
    text-decoration: none;
  }
}

/* ラベルを内包しているとき */
.acms-list-group-label-parent {
  position: relative;
  padding: 10px 30px 10px 10px;
}

.acms-list-group-label {
  position: absolute;
  top: 10px;
  right: 10px;
}

.acms-list-group-title-link {
  position: relative;
  margin: 0 10px;
  text-decoration: none;

  &:hover,
  &:visited,
  &:active,
  &:focus {
    text-decoration: underline;
  }
}
