@charset "UTF-8";

/**
 * 難読化連絡先（メール・電話番号）共通スタイル
 */

/* 全体ラッパー */
.secure-contact-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    font-size: 1rem;
    line-height: 1.5;
}

/* リンク要素（メール・電話共通） */
.secure-contact-wrapper a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.2s ease, opacity 0.2s ease;
    word-break: break-all;
}

.secure-contact-wrapper a:hover {
    color: #004080;
    text-decoration: none;
    opacity: 0.8;
}

/* 読込中の非表示テキスト */
.secure-contact-wrapper .email-link,
.secure-contact-wrapper .tel-link {
    color: #888888;
    font-style: italic;
}

/* コピーボタン */
.secure-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #333333;
    background-color: #f0f0f0;
    border: 1px solid #cccccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.secure-contact-btn:hover {
    background-color: #e0e0e0;
    border-color: #bbbbbb;
    color: #000000;
}

.secure-contact-btn:active {
    background-color: #d0d0d0;
    transform: translateY(1px);
}

/* コピー完了時のアニメーション用クラス（JSから付与） */
.secure-contact-btn.is-copied {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

/* --------------------------------------------------
 * 電話番号リンク用の固有スタイル
 * -------------------------------------------------- */
/* PC表示（非タッチデバイス）では電話リンクの下線を消してクリック感を減らす設定（任意） */
@media (min-width: 769px) {
    .secure-tel-wrapper a {
        text-decoration: none;
        cursor: default;
    }
}

/* --------------------------------------------------
 * カスタマイズ用サンプル（class属性で指定可能）
 * 例: [secure_email class="btn-style"]...[/secure_email]
 * -------------------------------------------------- */
.secure-contact-wrapper.btn-style a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0066cc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.secure-contact-wrapper.btn-style a:hover {
    background-color: #0052a3;
    opacity: 1;
}

/* ==================================================
 * トースト通知（ふわっと表示・消去）スタイル
 * ================================================== */
.secure-toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 10px 18px;
    background-color: rgba(33, 37, 41, 0.9);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    
    /* 初期状態: 透明で少し下に配置 */
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 表示状態: 不透明になり元の位置へ移動 */
.secure-toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* スマホ表示時は画面下部中央に配置 */
@media (max-width: 480px) {
    .secure-toast-notification {
        right: 50%;
        transform: translate(50%, 12px);
    }
    .secure-toast-notification.show {
        transform: translate(50%, 0);
    }
}