@charset "utf-8";

/* ==========================
  初期設定
========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
img {
  width: 100%;
}

/* ==========================
  コンテンツの中身
========================== */
.ly_inner {
  width: 100%;
  max-width: 1080px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
}
.ly_inner h2 {
  font-size: 130%;
  font-weight: bold;
  margin-bottom: 30px;
}
.md_textblock > * + * {
  margin-top: 10px;
}

/* ==========================
  アンダーバーが左から右に伸びて左に戻る
========================== */
.el_hover01 {
  position: relative;
  display: inline-block;
}
.el_hover01::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: -3px;
  height: 1px;
  width: 0;
  background-color: #000;
  transition: 0.3s;
}
.el_hover01:hover::after {
  width: 100%;
}

/* ==========================
  アンダーバーが左から右に伸びて右へ進み縮小していく
========================== */
.el_hover02 {
  position: relative;
  display: inline-block;
}
.el_hover02::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: -3px;
  height: 1px;
  width: 100%;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: right top;
  transition: transform 0.3s;
}
.el_hover02:hover::after {
  transform: scaleX(1);
  transform-origin: left top;
}

/* ==========================
  アンダーバーが中央から左右に伸びていく
========================== */
.el_hover03 {
  position: relative;
  display: inline-block;
}
.el_hover03::after {
  position: absolute;
  content: "";
  left: 50%;
  transform: translateX(-50%);
  bottom: -3px;
  height: 1px;
  width: 0;
  background-color: #000;
  transition: 0.3s;
}
.el_hover03:hover::after {
  width: 100%;
}

/* ==========================
  アンダーバーが中央から左右に伸びていく
========================== */
.el_hover03 {
  position: relative;
  display: inline-block;
}
.el_hover03::after {
  position: absolute;
  content: "";
  left: 50%;
  transform: translateX(-50%);
  bottom: -3px;
  height: 1px;
  width: 0;
  background-color: #000;
  transition: 0.3s;
}
.el_hover03:hover::after {
  width: 100%;
}

/* ==========================
  アンダーバーが上から下にスライドしながら現れる
========================== */
.el_hover04 {
  position: relative;
  display: inline-block;
}
.el_hover04::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background-color: #000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.el_hover04:hover::after {
  bottom: -3px;
  opacity: 1;
  visibility: visible;
}

/* ==========================
  テキストの色が変わる
========================== */
.el_hover05 {
  position: relative;
  display: inline-block;
  transition: 0.4s ease-out;
}
.el_hover05:hover {
  color: #58b1c4;
}

/* ==========================
  同じテキストが下から上にスライドしてくる
========================== */
.el_hover06 {
  position: relative;
  display: inline-block;
  overflow: hidden;
  transition: 0.4s ease-out;
}
.el_hover06::after {
  content: "";
  position: absolute;
  content: attr(data-replace);
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform-origin: 50% 100%;
  transform: translate(0, 200%);
  transition: transform 0.3s ease;
}
.el_hover06:hover::after {
  transform: translate(0, 0);
}

.el_hover06 span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.el_hover06:hover span {
  transform: translate(0, -200%);
}

/* ==========================
  アンダーラインがグラデーションを経由する
========================== */
.el_hover07 {
  position: relative;
  display: inline-block;
  transition: 0.4s ease-out;
  padding-bottom: 5px;
  overflow: hidden;
}
.el_hover07::after {
  content: "";
  position: absolute;
  width: 300%;
  height: 2px;
  right: -200%;
  bottom: 0;
  background: linear-gradient(
      to right,
      #222 0%,
      #222 33.333333%,
      red 33.333333%,
      blue 66.666666%,
      #222 66.666666%,
      #222 100%
    )
    no-repeat;
  transition: right 0.6s ease;
}
.el_hover07:hover::after {
  right: 0;
}

/* ==========================
  1文字1文字がバラバラに点滅する
========================== */
.el_hover08 {
  position: relative;
  display: inline-block;
}
.el_hover08 span {
  transition: opacity 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.el_hover08:hover span:nth-of-type(1) {
  animation: blink_animation 0.13s linear 0.12015s;
  animation-iteration-count: 2;
}
.el_hover08:hover span:nth-of-type(2) {
  animation: blink_animation 0.13s linear 0.13605s;
  animation-iteration-count: 2;
}
.el_hover08:hover span:nth-of-type(3) {
  animation: blink_animation 0.13s linear 0.0579s;
  animation-iteration-count: 2;
}
.el_hover08:hover span:nth-of-type(4) {
  animation: blink_animation 0.13s linear 0.1182s;
  animation-iteration-count: 2;
}
.el_hover08:hover span:nth-of-type(5) {
  animation: blink_animation 0.13s linear 0.1215s;
  animation-iteration-count: 2;
}
.el_hover08:hover span:nth-of-type(6) {
  animation: blink_animation 0.13s linear 0.10755s;
  animation-iteration-count: 2;
}
.el_hover08:hover span:nth-of-type(7) {
  animation: blink_animation 0.13s linear 0.02745s;
  animation-iteration-count: 2;
}
@keyframes blink_animation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}
