/*
    ファイル名：component.css
    更新日時：2022/01/31

    【説明】
    このスタイルシートは、ボタンや
    文字書式などのCSSのコンポーネン
    トです。
*/




/*  aタグをボックス全体に広げます
    【使用例】
    div要素にリンクを付けます。
    <div class="aBtn">
        <a href="URL"></a>
    </div>
*/
.aBtn{
  position: relative;
}
.aBtn a{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*  ボタンを作成します
    【使用例】
    <div class="button">
        <p>新規情報</p>
    </div>
*/
div.button {
    width: 140px;
    padding: 10px 0;
    text-align: center;
    background-color: #3d71ff;
    cursor: pointer;
}
div.button p{
    color: #fff;
    font-weight: 300;
}

/*  トランジション
    ※追加でkeyfreamとanimation-nameを指定する必要がある
*/
.transition {
    animation-fill-mode: forwards;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
    animation-delay: 0.5s;
    animation-direction: normal;
}

/*  ハンバーガーメニュー
*/
.menu-trigger,
.menu-trigger span {
  display: inline-block;
  transition: all .4s;
  box-sizing: border-box;
}
.menu-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  appearance: none;
  cursor: pointer;
}
.menu-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #707070;
  border-radius: 4px;
}
.menu-trigger span:nth-of-type(1) {
  top: 0;
}
.menu-trigger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}
.menu-trigger span:nth-of-type(3) {
  bottom: 0;
}
.menu-trigger.active span:nth-of-type(1) {
    transform: translateY(16px) rotate(-315deg);
}
.menu-trigger.active span:nth-of-type(2) {
    opacity: 0;
}
.menu-trigger.active span:nth-of-type(3) {
transform: translateY(-12px) rotate(315deg);
}