/**
 * Component: buttons.css
 * Usage: 共通ボタンコンポーネント
 * Source: base.css から分割
 *
 * 構成:
 * - .el_btn: 基本ボタン
 * - .el_arrowBtn: 矢印ボタン
 * - .el_greenBtn: グリーングラデーションボタン
 */


/* ================================================
   基本ボタン (.el_btn)
   ================================================ */
.el_btn {
  font-size: 1.25rem;
  font-weight: 400;
  background: var(--color-primary);
  color: white;
  width: 350px;
  height: 50px;
  position: relative;
  transition: all var(--transition-base);
  border-radius: 10px;
  text-align: center;
  display: block;
  line-height: 1;
  padding: 15px 0;
  max-width: 100%;
}
.el_btn::after{
  content: '';
  background-color: #FFFFFF1A;
  background-image: url('../../img/icons/button_arrow.svg');
  background-repeat: no-repeat;
  background-position: center center;
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 10px 10px 0;
}
.el_btn:hover,
.el_btn:focus {
  opacity: 0.8;
}

/* ================================================
   矢印ボタン (.el_arrowBtn)
   ================================================ */
.el_arrowBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #86bf00 0.06%, #20ae4f 99.94%);
  filter: drop-shadow(2px 2px 8px rgba(35, 24, 21, 0.1));
  flex-shrink: 0;
  cursor: pointer;
}

.el_arrowBtn_icon {
  transition: transform 0.3s ease;
}

.el_arrowBtn_icon__sp {
  display: block;
}

.el_arrowBtn_icon__pc {
  display: none;
}

/* 左矢印 */
.el_arrowBtn__left .el_arrowBtn_icon {
  transform: scaleX(-1);
}

/* ホバー：右矢印 */
.el_arrowBtn__right:hover .el_arrowBtn_icon {
  transform: translateX(3px);
}

/* ホバー：左矢印 */
.el_arrowBtn__left:hover .el_arrowBtn_icon {
  transform: scaleX(-1) translateX(3px);
}

/* ================================================
   ボタン (.el_blueBtn)
   ================================================ */
.el_blueBtn {
  display: flex;
  gap: var(--space-sm);
  padding-block: 10px;
  background: linear-gradient(90deg, #004196 0%, #008D9F 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  max-width: 284px;
  width: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
  height: 48px;
  transition: opacity 0.3s;
  position: relative;
}

.el_blueBtn img {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.el_blueBtn:hover {
  opacity: 0.8;
}

/* ================================================
   Tablet / PC (768px〜)
   ================================================ */
@media screen and (min-width: 768px) {

  /* グリーンボタン（PC） */
  .el_greenBtn {
    font-size: var(--font-lg);
    height: 60px;
    max-width: 320px;
  }

  .el_greenBtn.md_right {
    margin-right: 0;
  }

  .el_arrowBtn_icon__sp {
    display: none;
  }

  .el_arrowBtn_icon__pc {
    display: block;
  }
}
