Parts

Parts

シンプルなボタン 12


<div class="simpleButton">
  <a href="#">詳細はこちら</a>
</div>
                

.simpleButton a {
  color: #FFF;
  background-color: #333333;
  border: #1a1a1a solid 2px;
  border-bottom: #0d0d0d solid 2px;
  box-shadow: 0 1px 1px -1px rgba(255, 255, 255, 0.9) inset,
    0 40px 20px -20px rgba(255, 255, 255, 0.15) inset,
    0 -1px 1px -1px rgba(0, 0, 0, 0.7) inset,
    0 -40px 20px -20px rgba(0, 0, 0, 0.06) inset;
  display: inline-block;
  line-height: 1.4em;
  padding: 0.5em 3em 0.5em 1.8em;
  font-weight: normal;
  border-radius: 0.2em;
  vertical-align: bottom;
  overflow: hidden;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s all ease;
  position: relative;
}
.simpleButton a::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform: rotate(-19deg) translateY(-1.3em) scale(1.05);
  filter: blur(1px);
  background-image: linear-gradient(
    -90deg,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0)
  );
  transition: 0.3s all ease;
}
.simpleButton a::after {
  content: "";
  width: 0.4em;
  height: 0.8em;
  display: block;
  background: url("/img/icon/caret-right.svg") no-repeat center center;
  background-size: 100% auto;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%)
    hue-rotate(228deg) brightness(106%) contrast(101%);
  position: absolute;
  top: 50%;
  right: 1.4em;
  margin-top: -0.4em;
  transition: all 0.5s;
}
.simpleButton a:hover {
  color: #fff;
  transition: all 0.5s;
  background-color: #000;
}
.simpleButton a:hover::after {
  right: 1.2em;
}
              

.simpleButton a {
  color: #FFF;
  background-color: #333333;
  border: #1a1a1a solid 2px;
  border-bottom: #0d0d0d solid 2px;
  box-shadow: 0 1px 1px -1px rgba(255, 255, 255, 0.9) inset,
    0 40px 20px -20px rgba(255, 255, 255, 0.15) inset,
    0 -1px 1px -1px rgba(0, 0, 0, 0.7) inset,
    0 -40px 20px -20px rgba(0, 0, 0, 0.06) inset;
  display: inline-block;
  line-height: 1.4em;
  padding: 0.5em 3em 0.5em 1.8em;
  font-weight: normal;
  border-radius: 0.2em;
  vertical-align: bottom;
  overflow: hidden;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s all ease;
  position: relative;
  &::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: rotate(-19deg) translateY(-1.3em) scale(1.05);
    filter: blur(1px);
    background-image: linear-gradient(
      -90deg,
      rgba(255, 255, 255, 0.12) 20%,
      rgba(255, 255, 255, 0)
    );
    transition: 0.3s all ease;
  }
  &::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: rotate(-19deg) translateY(-1.3em) scale(1.05);
    filter: blur(1px);
    background-image: linear-gradient(
      -90deg,
      rgba(255, 255, 255, 0.12) 20%,
      rgba(255, 255, 255, 0)
    );
    transition: 0.3s all ease;
  }
  &::after {
    content: "";
    width: 0.4em;
    height: 0.8em;
    display: block;
    background: url("/img/icon/caret-right.svg") no-repeat center center;
    background-size: 100% auto;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%)
      hue-rotate(228deg) brightness(106%) contrast(101%);
    position: absolute;
    top: 50%;
    right: 1.4em;
    margin-top: -0.4em;
    transition: all 0.5s;
  }
  &:hover {
    color: #fff;
    transition: all 0.5s;
    background-color: #000;
    &::after {
      right: 1.2em;
    }
  }
}
                
ページ上部に戻るスプーン