/* 固定ボタンのスタイル */
.main-connect-btn {
    position: fixed;  /* ビューポートに対して固定 */
    top: 20px;        /* 上から20pxの位置 */
    right: 20px;      /* 右から20pxの位置 */
    z-index: 1000;    /* 他の要素より前面に表示 */

    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold; /* 文字を太字に */
    outline: none; /* フォーカス時のアウトラインを削除 */
    background-color: inherit; /* 背景色を継承 */
    color: inherit; /* 文字色を継承 */
    appearance: none; /* ブラウザデフォルトのスタイルを無効化 */
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 形状のスタイル */
.btn-square {
    border-radius: 4px;
}

.btn-round {
    border-radius: 50px;
}

/* ボタンの色を強制的に適用 */
.wallet-connect-btn, .connect-btn {
    background-color: #1e90ff; /* デフォルトの背景色をスタイリッシュなブルーに設定 */
    color: #ffffff; /* デフォルトの文字色を白に設定 */
    font-weight: bold; /* 文字を太字に */
}


/* モーダルの基本スタイル */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 背景を半透明に */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    
    /* 背景をぼかす */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari対応 */
}

.wallet-modal-content {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px; /* サイズを大きく */
    color: gray;
}

.hidden {
    display: none;
}



.wallet-name.connected {
    color: #000000; /* 黒色で接続中を示す */
    font-weight: bold;
}

/* Connectボタンのスタイル */
.connect-btn {
    background-color: #1e90ff; /* スタイルを統一 */
    color: #ffffff;
    display: inline-block;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold; /* 文字を太字に */
    border-radius: 4px; /* 角を少し丸める */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 形状クラスに基づくスタイルの適用 */
.connect-btn.btn-square {
    border-radius: 4px !important;
}

.connect-btn.btn-round {
    border-radius: 50px !important;
}

/* ウォレットリストのスタイル */
.wallet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer; /* クリック可能であることを示す */
    transition: background-color 0.3s ease;
}

.wallet:last-child {
    border-bottom: none;
}

.wallet-left {
    display: flex;
    align-items: center;
}

.wallet-icon {
    width: 32px; /* アイコンの幅を統一 */
    height: 32px; /* アイコンの高さを統一 */
    margin-right: 12px;
    object-fit: contain; /* 画像の縦横比を保持 */
}

.wallet-name {
    font-size: 18px; /* ウォレット名の文字サイズを調整 */
    font-weight: bold; /* ウォレット名を太字に */
    color: #333333; /* ウォレット名の色を設定 */
}

/* 接続状態テキストのスタイル */
.wallet-status-text {
    font-size: 14px;
    font-weight: bold;
}

.wallet-status-text.detected {
    color: #808080; /* 灰色で検知済みを示す */
}

.wallet-status-text.connected {
    color: #000000; /* 黒色で接続済みを示す */
}

/* ウォレットのマウスオーバー時のエフェクト */
.wallet:hover {
    background-color: rgba(0, 0, 0, 0.05); /* 少し濃くする */
}


/* ボタンのフォーカス時のスタイル */
.wallet-connect-btn:focus, .connect-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* レスポンシブデザインの強化 */
@media (max-width: 600px) {
    .wallet-modal-content {
        width: 95%;
        padding: 15px;
    }

    .wallet-connect-btn, .connect-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .wallet-icon {
        width: 24px; /* アイコンサイズを小さく */
        height: 24px; /* アイコンサイズを小さく */
        margin-right: 8px;
    }

    .wallet-name {
        font-size: 16px; /* ウォレット名の文字サイズを調整 */
        font-weight: bold; /* ウォレット名を太字に */
    }

    .wallet-modal-title {
        font-size: 14px; /* 必要に応じて値を調整 */
        font-weight: bold; /* 文字を太字に維持 */
        color: #333333; /* 文字色を維持 */
    }
}

.wallet-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 要素の中心を画面の中心に合わせる */
    background-color: #1e90ff;
    color: #ffffff;
    padding: 15px 30px;      /* 余白を拡大 */
    border-radius: 4px;
    z-index: 1002;
    opacity: 0.95;           /* 少し不透明にして視認性を高める */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* 影を追加して浮き上がった印象に */
    font-size: 1.2em;        /* 文字サイズを大きく */
    text-align: center;      /* テキストを中央揃え */
}

.wallet-notification.error {
    background-color: #ff4d4d;
}

.wallet-disconnect-btn {
  background-color: #ffffff; /* 背景を白色に設定 */
  color: #333;               /* 文字色は濃いグレーなど、見やすい色に設定 */
  border: 1px solid #ccc;    /* 薄いグレーの枠線 */
  border-radius: 8px;        /* 角丸の半径（8px などお好みで） */
  padding: 10px 20px;        /* 内側の余白 */
  font-size: 16px;           /* フォントサイズ */
  cursor: pointer;           /* ホバー時にカーソルがポインターになる */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hover-darken {
  transition: filter 0.3s ease; /* なめらかな切り替え効果 */
}

.hover-darken:hover {
  filter: brightness(0.9); /* 明度を90%にして、やや暗くする */
}
