/* 全体のスタイル */
:root {
    --primary-color: #1d1dff;
    --secondary-color: #0000ff;
    --accent-color: #b25ef4;
    --background-color: #f8f8f8;
    --card-background: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --success-color: #0fa388;
    --warning-color: #ff6b46;
    --error-color: #ed315d;
}

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', "yu-mincho-pr6n", sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-inner {
    padding: 20px;
}

/* ナビゲーション */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navMng {
    width: 100%;
}

.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.btec-logo {
    height: 40px;
}

/* ウォレット接続ボタン */
.wallet-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.connect-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(29, 29, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connect-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.connect-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(29, 29, 255, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.connect-button:hover::before {
    left: 100%;
}

.connect-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29, 29, 255, 0.3);
}

.connect-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.address-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.disconnect-btn {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.disconnect-btn:hover {
    background-color: rgba(237, 49, 93, 0.1);
    transform: scale(1.1);
}

.disconnect-btn svg {
    width: 16px;
    height: 16px;
}

.account-address {
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(29, 29, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: monospace;
    white-space: nowrap;
}

.balance {
    font-weight: 700;
    color: var(--success-color);
}

/* ウォレットドロップダウン */
.wallet-dropdown {
    position: relative;
}

.wallet-button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 25px;
    background-color: rgba(29, 29, 255, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wallet-button:hover {
    background-color: rgba(29, 29, 255, 0.15);
    border-color: rgba(29, 29, 255, 0.2);
}

.dropdown-arrow {
    font-size: 12px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.wallet-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.wallet-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    min-width: 280px;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallet-dropdown-item {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.wallet-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 10px;
}

.full-address {
    font-family: monospace;
    font-size: 12px;
    color: var(--primary-color);
    background-color: rgba(29, 29, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    word-break: break-all;
    max-width: 180px;
}

.wallet-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.wallet-disconnect-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--error-color);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-disconnect-btn:hover {
    background-color: rgba(237, 49, 93, 0.1);
}

.disconnect-icon {
    font-size: 16px;
}

/* ヘッダー */
header {
    background-color: #010131;
    color: white;
    padding: 80px 0;
    position: relative;
}

.header-container {
    position: relative;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.header-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.header-content p {
    font-size: 18px;
    line-height: 1.6;
}

/* フローティングボックス */
.floating-box {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s, background-color 0.3s;
}

.floating-box:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
}

.floating-box h2 {
    margin: 0;
    font-size: 18px;
}

/* メインコンテンツ */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* カード */
.card {
    background-color: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

/* ホワイトボックス */
.white-box-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin: 40px 0;
}

.white-box-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.white-box-container h2 span {
    display: block;
    font-size: 18px;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.white-box-container p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.wb-list {
    list-style-type: none;
    margin-bottom: 30px;
}

.wb-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 16px;
}

.wb-list li:before {
    content: "•";
    color: var(--primary-color);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.white-box-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.white-box-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* フォーム */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 29, 255, 0.1);
}

.button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* ボックスコンテナ */
.box-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.box {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.box p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.box-bg {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 0;
}

.box-bg-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.box-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.box-bg-img-container-main {
    position: relative;
    width: 100%;
    height: 100%;
}

.bg-box-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-box-content h4 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}

.bg-box-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.box-btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.box-btn:hover {
    transform: translateY(-3px);
}

.box-btn2 {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* プール情報 */
.pool-list {
    margin-top: 20px;
}

.pool-item {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pool-id {
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

.pool-apr {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.pool-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 15px;
}

/* ステーク情報 */
.stake-list {
    margin-top: 20px;
}

.stake-item {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stake-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stake-id {
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

.stake-status {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.status-locked {
    background-color: var(--warning-color);
    color: white;
}

.status-unlocked {
    background-color: var(--success-color);
    color: white;
}

.status-withdrawn {
    background-color: #e0e0e0;
    color: #666;
}

.stake-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 15px;
    margin-bottom: 15px;
}

.withdraw-button {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: auto;
    display: inline-block;
}

.withdraw-button:hover {
    background-color: #0c8c74;
    transform: translateY(-2px);
}

/* ローディングインジケーター */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 通知 */
.notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-success {
    background-color: var(--success-color);
}

.notification-error {
    background-color: var(--error-color);
}

.notification-warning {
    background-color: var(--warning-color);
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
}

/* ウィジェットコンテナ */
.widget-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
}

/* フッター */
footer {
    background-color: #010131;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

/* ユーティリティクラス */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-25 {
    margin-top: 25px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .box-container {
        grid-template-columns: 1fr;
    }
    
    .white-box-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .header-content h2 {
        font-size: 28px;
    }
    
    .header-content p {
        font-size: 16px;
    }
    
    .white-box-container h2 {
        font-size: 24px;
    }
    
    .white-box-container p {
        font-size: 16px;
    }
    
    .pool-details, .stake-details {
        grid-template-columns: 1fr;
    }
    
    .top-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .connect-button {
        padding: 14px 28px;
        font-size: 16px;
        min-width: 160px;
    }
    
    .account-info {
        align-items: center;
        flex-direction: column;
        gap: 5px;
    }
    
    .address-container {
        flex-direction: row;
        gap: 8px;
    }
    
    .wallet-dropdown-menu {
        right: auto;
        left: 0;
        min-width: 260px;
    }
}

@media (max-width: 576px) {
    .container-inner {
        padding: 15px;
    }
    
    .card, .box {
        padding: 20px;
    }
    
    .floating-box {
        right: 15px;
        bottom: 15px;
        padding: 10px 20px;
    }
    
    .floating-box h2 {
        font-size: 16px;
    }
    
    .connect-button {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 140px;
    }
    
    .wallet-dropdown-menu {
        min-width: 240px;
    }
    
    .full-address {
        max-width: 140px;
        font-size: 11px;
    }
}
