﻿/* ==========================================================================
   既存干渉防止：カプセル型PDFボタン専用スタイル（接頭辞: gp-pdf-）
   ========================================================================== */

/* 親コンテナの設定 */
.gp-pdf-button-wrap {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 540px !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 20px auto !important; /* 上下に適度な余白を設定 */
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* ボタン単体の設定 */
.gp-pdf-capsule-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 240px !important;
    height: 44px !important;
    padding: 0 16px !important;
    background-color: #ffffff !important;
    border: 1px solid #A5A5A5 !important;
    color: black !important;
    text-decoration: none !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    
    /* 既存のリンクの下線などの干渉をクリア */
    outline: none !important;
    text-shadow: none !important;
}

/* ボタン内のコンテンツグループ（アイコンとテキスト） */
.gp-pdf-btn-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; 
    gap: 8px !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
}

/* ボタンのテキスト */
.gp-pdf-btn-text {
    font-size: 12px !important;
    color: black !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* アイコンの基本スタイル */
.gp-pdf-icon-pdf {
    flex-shrink: 0 !important;
    fill: none !important;
    stroke: black !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: all 0.3s ease !important;
}



/* --------------------------------------------------------------------------
   ホバー（マウス乗せ時）＆アクティブ時の挙動
   -------------------------------------------------------------------------- */
/* クリックした瞬間の押し込み */
.gp-pdf-capsule-btn:active {
    transform: scale(0.98) !important;
}

/* キーボードフォーカス */
.gp-pdf-capsule-btn:focus-visible {
    outline: 2.5px solid rgba(224, 83, 0, 0.4) !important;
    outline-offset: 1.5px !important;
}

/* --------------------------------------------------------------------------
   レスポンシブ：スマートフォン対応（540px以下）
   -------------------------------------------------------------------------- */
@media (max-width: 540px) {
    .gp-pdf-button-wrap {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .gp-pdf-capsule-btn {
        max-width: 240px !important;
    }
}
