* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: #000000;
    min-height: 100vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 20px 20px;
}

.container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 16px;
    object-fit: cover;
    border: none;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.profile-bio {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    font-weight: 400;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 680px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.link-button:active {
    transform: scale(0.98);
}

.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: currentColor;
}

.link-button span {
    flex: 1;
    text-align: center;
    margin-right: 36px;
}

.footer {
    display: none;
}

@media (max-width: 640px) {
    body {
        padding: 32px 16px 16px 16px;
    }

    .container {
        max-width: 100%;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 18px;
    }

    .profile-bio {
        font-size: 13px;
    }

    .link-button {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 52px;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

    .link-button span {
        margin-right: 24px;
    }
}

/* QRコード共通スタイル */
.qr-wrapper {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#qrcode-mobile,
#qrcode-desktop {
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcode-mobile canvas,
#qrcode-mobile img,
#qrcode-desktop canvas,
#qrcode-desktop img {
    filter: invert(1);
}

.qr-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    white-space: nowrap;
}

/* モバイル用QRコードコンテナ */
.qr-container-mobile {
    display: none;
    margin: 32px auto 0;
    width: 100%;
}

/* デスクトップ用QRコードコンテナ */
.qr-container-desktop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* モバイルでモバイル用QRコードを表示 */
@media (max-width: 768px) {
    .qr-container-mobile {
        display: flex;
        justify-content: center;
    }
    
    .qr-container-desktop {
        display: none;
    }
}

/* タブレット以上でデスクトップ用QRコードを表示 */
@media (min-width: 769px) {
    .qr-container-mobile {
        display: none;
    }
    
    .qr-container-desktop {
        display: block;
    }
}

/* タブレットでQRコードサイズ調整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .qr-container-desktop {
        bottom: 15px;
        right: 15px;
    }
    
    .qr-wrapper {
        padding: 12px;
    }
    
    .qr-text {
        font-size: 11px;
    }
}

/* デスクトップ表示 */
@media (min-width: 1025px) {
    .qr-wrapper {
        cursor: default;
    }
}

@media (min-width: 641px) {
    body {
        align-items: center;
        padding: 40px 20px;
    }
}