/* =============================================================================
   Button（ボタンコンポーネント）
   Figma: node-id=211:6324
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 440px;
  padding: var(--margin-8) var(--margin-16);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-family-button);
  font-size: var(--text-paragraph-bold);
  font-weight: bold;
  border-radius: var(--radius-l);
  text-decoration: none;
}

/* hover: 黒 20% オーバーレイ（Figma 準拠） */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::after {
  opacity: 1;
}

.btn__text {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.btn__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}

/* =============================================================================
   Button（SP）
   ============================================================================= */

/* ボタン幅 440px を超えたとき全幅に切り替え */
@container (max-width: 460px) {
  .btn {
    width: 100%;
  }
}
