/* ══════════════════════════════════════
   BUTTON COMPONENTS
   SmartHR スタイル — フィルリビール
══════════════════════════════════════ */

/* ── Primary Button ── */
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--bg-white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: color 0.32s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  z-index: 0;
}

/* フィル層：ネイビーが左から右にスライドイン */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--ease);
  z-index: -1;
}

.btn-primary > * { position: relative; z-index: 1; }

.btn-primary:hover { color: var(--yellow); }
.btn-primary:hover::before { transform: scaleX(1); }

/* ホバー時：矢印アイコンが右に 4px スライド */
.btn-primary:hover svg:last-child,
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
  transition: transform 0.25s var(--ease);
}
.btn-primary svg:last-child,
.btn-primary .btn-arrow {
  transition: transform 0.25s var(--ease);
}

/* CTA サイズ修飾子 */
.btn-primary--lg {
  padding: 16px 40px;
}


/* ── Ghost Button ── */
.btn-ghost {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #0a0a0a;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1.5px solid var(--navy);
  cursor: pointer;
  transition: color 0.32s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  z-index: 0;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--ease);
  z-index: -1;
}

.btn-ghost > * { position: relative; z-index: 1; }

.btn-ghost:hover { color: var(--bg-white); }
.btn-ghost:hover::before { transform: scaleX(1); }

.btn-ghost:hover svg:last-child { transform: translateX(4px); }
.btn-ghost svg:last-child { transition: transform 0.25s var(--ease); }


/* ── Ghost Dark（ネイビー背景用） ── */
.btn-ghost-dark {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--bg-white);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 12px 22px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.32s var(--ease), border-color 0.32s;
  white-space: nowrap;
  text-decoration: none;
  z-index: 0;
}

.btn-ghost-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--ease);
  z-index: -1;
}

.btn-ghost-dark > * { position: relative; z-index: 1; }

.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.7); }
.btn-ghost-dark:hover::before { transform: scaleX(1); }


/* ── Text Link ── */
.btn-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 600;
  padding-bottom: 3px;
  text-decoration: none;
  transition: color 0.25s;
}

/* アンダーライン：左から右に伸長 */
.btn-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--navy);
  transition: width 0.28s var(--ease);
}

.btn-text:hover { color: var(--navy); }
.btn-text:hover::after { width: 100%; }

.btn-text:hover svg:last-child { transform: translateX(4px); }
.btn-text svg:last-child { transition: transform 0.25s var(--ease); }


/* ── Section Eyebrow ── */
.section-eyebrow {
  font-family: var(--font-en);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  color: var(--yellow);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-6);
}

/* 左の細い装飾ライン */
.section-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
  opacity: 0.8;
}


/* ── Tag / Badge ── */
.tag {
  display: inline-block;
  background: rgba(56,72,96,0.07);
  color: var(--navy);
  font-family: var(--font-en);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
}
