/*
 * SWELL #header 内の .w-header（head_box）向け。
 * 783px 未満は従来どおり非表示（.w-header.pc_ と併用）。
 */

.swell-hcta {
  display: none !important;
}

@media (min-width: 783px) {
  .swell-hcta {
    display: block !important;
    --swell-hcta-orange: #f58200;
    --swell-hcta-orange-hover: #ff9a1a;
    --swell-hcta-ink: #1a0f00;
    background: transparent;
    border: 0;
    box-sizing: border-box;
    /* 親が flex のとき右側の余白を吸収してブロックを左へ寄せる */
    margin-inline-start: 0;
    margin-inline-end: auto;
    width: max-content;
    max-width: 100%;
  }

  /* ヘッダー内：左寄せ（ボタン列はさらに左へ） */
  #header .swell-hcta__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    justify-content: flex-start;
    align-items: center;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .swell-hcta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none !important;
    color: #fff !important;
    background: var(--swell-hcta-orange);
    border-radius: 9px;
    border: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset,
      0 1px 2px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
  }

  .swell-hcta__btn:hover,
  .swell-hcta__btn:focus-visible {
    background: var(--swell-hcta-orange-hover);
    color: #fff !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset,
      0 2px 8px rgba(245, 130, 0, 0.45);
    transform: translateY(-1px);
  }

  .swell-hcta__btn:focus-visible {
    outline: 2px solid var(--swell-hcta-ink);
    outline-offset: 2px;
  }
}
