/**
 * ガチャユーザーシステム CSS
 */

/* 共通スタイル */
.gacha-user-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gacha-user-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

/* フォームスタイル */
.gacha-user-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gacha-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gacha-form-label {
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

.gacha-form-input {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.gacha-form-input:focus {
    outline: none;
    border-color: var(--color_main, #007cba);
}

.gacha-form-input.error {
    border-color: #dc3545;
}

/* ボタンスタイル */
.gacha-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.gacha-btn-primary {
    background: var(--color_main, #007cba);
    color: white;
}

.gacha-btn-primary:hover {
    background: var(--color_main_hover, #005a87);
    transform: translateY(-1px);
}

.gacha-btn-secondary {
    background: #6c757d;
    color: white;
}

.gacha-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.gacha-btn-outline {
    background: transparent;
    color: var(--color_main, #007cba);
    border: 2px solid var(--color_main, #007cba);
}

.gacha-btn-outline:hover {
    background: var(--color_main, #007cba);
    color: white;
}

/* メッセージスタイル */
.gacha-message {
    position: fixed;
    bottom: 80px;
    left: 20px;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    animation: slideInUp 0.3s ease-out;
    background: white;
    border: 1px solid #e0e0e0;
}

.gacha-message.success {
    color: #155724;
    border-color: #c3e6cb;
    border-left: 4px solid #28a745;
}

.gacha-message.error {
    color: #721c24;
    border-color: #f5c6cb;
    border-left: 4px solid #dc3545;
}

.gacha-message.info {
    color: #0c5460;
    border-color: #bee5eb;
    border-left: 4px solid #17a2b8;
}

/* メッセージのアニメーション */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

.gacha-message.fade-out {
    animation: slideOutDown 0.3s ease-in forwards;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .gacha-message {
        bottom: 70px;
        left: 15px;
        max-width: 250px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ログイン/登録フォーム */
.gacha-auth-links {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.gacha-auth-links a {
    color: var(--color_main, #007cba);
    text-decoration: none;
    margin: 0 0.5rem;
}

.gacha-auth-links a:hover {
    text-decoration: underline;
}

/* マイページスタイル */
.gacha-mypage-header {
    background: linear-gradient(135deg, var(--color_main, #007cba), var(--color_main_hover, #005a87));
    color: white;
    padding: 2rem;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.gacha-mypage-content {
    padding: 0;
}

.gacha-mypage-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.gacha-mypage-nav-item {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #666;
    position: relative;
}

.gacha-mypage-nav-item.active {
    background: transparent;
    color: var(--color_main, #007cba);
    border-bottom-color: var(--color_main, #007cba);
}

.gacha-mypage-nav-item:hover:not(.active) {
    background: transparent;
    color: var(--color_main, #007cba);
    border-bottom-color: rgba(0, 124, 186, 0.3);
}

/* アカウント設定ボタンのプライオリティ */
.gacha-account-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gacha-account-link {
    background: none !important;
    border: none !important;
    color: #666 !important;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.gacha-account-link:hover {
    color: #333 !important;
    text-decoration: none;
}

.gacha-account-delete {
    color: #999 !important;
}

.gacha-account-delete:hover {
    color: #666 !important;
}

/* ユーザー情報表示 */
.gacha-user-info {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.gacha-user-info-label {
    font-weight: bold;
    color: #555;
}

.gacha-user-info-value {
    color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .gacha-user-container {
        margin: 0;
        padding: 1rem;
        max-width: 100%;
    }
    
    .gacha-mypage-content {
        padding: 0;
    }
    
    .gacha-mypage-nav {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }
    
    .gacha-mypage-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .gacha-user-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* プロフィールセクションの2カラムを1カラムに */
    .gacha-mypage-content > div:first-child {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ローディング状態 */
.gacha-loading {
    opacity: 0.6;
    pointer-events: none;
}

.gacha-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--color_main, #007cba);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* チェックボックススタイル */
.gacha-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gacha-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--color_main, #007cba);
}

/* パスワード強度表示 */
.gacha-password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.gacha-password-strength.weak {
    color: #dc3545;
}

.gacha-password-strength.medium {
    color: #ffc107;
}

.gacha-password-strength.strong {
    color: #28a745;
}

/* ヘッダーユーザー状態表示 */
.gacha-user-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    z-index: 1000;
    white-space: nowrap;
}

.gacha-user-status__logged-in {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gacha-user-status__menu {
    display: flex;
    gap: 0.5rem;
}

.gacha-user-status__logged-out {
    display: flex;
    gap: 0.5rem;
}

.gacha-user-status__link {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    color: white;
    white-space: nowrap;
}

.gacha-user-status__link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

.gacha-user-status__link--register {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gacha-user-status__link--register:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* PCグローバルナビのユーザーメニュー項目 */
.gacha-user-nav-item {
    margin-left: auto;
}

.gacha-user-nav-item a {
    color: inherit;
    text-decoration: none;
}

.gacha-user-nav-item:hover a {
    color: inherit;
    text-decoration: none;
}

/* スマホヘッダーメニュー用ユーザー状態表示 */
.gacha-user-menu-link {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.gacha-user-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.gacha-user-menu-link--register {
    background: rgba(255, 255, 255, 0.1);
}

.gacha-user-menu-link--register:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ハンバーガーメニュー上部用ユーザー状態表示 */
.gacha-user-sp-menu-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gacha-user-sp-menu-top-link {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.gacha-user-sp-menu-top-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.gacha-user-sp-menu-top-link--register {
    background: rgba(255, 255, 255, 0.1);
}

.gacha-user-sp-menu-top-link--register:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .gacha-user-status {
        display: none;
    }
}

@media (min-width: 769px) {
    .gacha-user-menu-item {
        display: none;
    }
    
    .gacha-user-sp-menu-top {
        display: none;
    }
}

/* ブックマークボタン */
.gacha-bookmark-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.gacha-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 25px;
    color: #856404;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gacha-bookmark-btn:hover {
    background: #ffeaa7;
    border-color: #fdcb6e;
    color: #856404;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gacha-bookmark-btn--active {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.gacha-bookmark-btn--active:hover {
    background: #ffca2c;
    border-color: #ffca2c;
    color: #212529;
}

.gacha-bookmark-btn--guest {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.gacha-bookmark-btn--guest:hover {
    background: #5a6268;
    border-color: #5a6268;
    color: white;
}

.gacha-bookmark-icon {
    font-size: 16px;
    line-height: 1;
}

.gacha-bookmark-text {
    line-height: 1;
}

/* ローディング状態 */
.gacha-bookmark-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.gacha-bookmark-btn.loading .gacha-bookmark-text {
    position: relative;
}

.gacha-bookmark-btn.loading .gacha-bookmark-text::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid #ccc;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .gacha-bookmark-container {
        bottom: 15px;
        left: 15px;
    }
    
    .gacha-bookmark-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .gacha-bookmark-icon {
        font-size: 14px;
    }
}

/* ブックマーク一覧 */
.gacha-bookmarks-list {
    display: grid;
    gap: 1rem;
}

/* 月別グループ */
.gacha-bookmark-month-group {
    margin-bottom: 2rem;
}

.gacha-bookmark-month-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color_main, #007cba);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color_main, #007cba);
    position: relative;
}

.gacha-bookmark-month-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color_main, #007cba);
}

.gacha-bookmark-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
}

.gacha-bookmark-item:last-child {
    margin-bottom: 0;
}

.gacha-bookmark-item:hover {
    border-color: var(--color_main, #007cba);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gacha-bookmark-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.gacha-bookmark-content {
    flex: 1;
    min-width: 0;
}

.gacha-bookmark-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gacha-bookmark-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.gacha-bookmark-release-date {
    font-size: 0.8rem;
    color: #007cba;
    font-weight: bold;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.gacha-bookmark-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.gacha-bookmark-remove {
    padding: 0.25rem 0.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gacha-bookmark-remove:hover {
    background: #c82333;
}

/* 閲覧履歴一覧 */
.gacha-history-list {
    display: grid;
    gap: 1rem;
}

.gacha-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gacha-history-item:hover {
    border-color: var(--color_main, #007cba);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gacha-history-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.gacha-history-content {
    flex: 1;
    min-width: 0;
}

.gacha-history-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gacha-history-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.gacha-history-viewed-date {
    font-size: 0.8rem;
    color: #666;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-right: 0.5rem;
}

.gacha-history-release-date {
    font-size: 0.8rem;
    color: #007cba;
    font-weight: bold;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.gacha-history-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.gacha-history-bookmark {
    padding: 0.25rem 0.5rem;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    color: #856404;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gacha-history-bookmark:hover {
    background: #ffeaa7;
    border-color: #fdcb6e;
    color: #856404;
}

.gacha-history-bookmark.bookmarked {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.gacha-history-bookmark.bookmarked:hover {
    background: #ffca2c;
    border-color: #ffca2c;
    color: #212529;
}

/* 閲覧履歴クリアボタン */
.gacha-history-clear-link {
    background: none !important;
    border: none !important;
    color: #999 !important;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.gacha-history-clear-link:hover {
    color: #666 !important;
    text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .gacha-user-container {
        margin: 0;
        padding: 1rem;
        max-width: 100%;
    }
    
    .gacha-mypage-content {
        padding: 0;
    }
    
    .gacha-mypage-nav {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }
    
    .gacha-mypage-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .gacha-user-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* プロフィールセクションの2カラムを1カラムに */
    .gacha-mypage-content > div:first-child {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gacha-bookmark-item,
    .gacha-history-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
    
    .gacha-bookmark-thumbnail,
    .gacha-history-thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .gacha-bookmark-actions,
    .gacha-history-actions {
        width: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 1024px) {
    .gacha-user-status__link {
        padding: 0.3rem 0.7rem;
        font-size: 0.9em;
    }
}

/* プロフィール編集ボタン */
.gacha-edit-btn {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gacha-edit-btn:hover {
    background: #005a87;
}

/* モーダルスタイル */
.gacha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gacha-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.gacha-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.gacha-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

.gacha-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.gacha-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.gacha-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.gacha-modal-body {
    padding: 1.5rem;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .gacha-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .gacha-modal-header,
    .gacha-modal-body {
        padding: 1rem;
    }
}

/* おすすめガチャ一覧 */
.gacha-recommendations-list {
    display: grid;
    gap: 1rem;
}

.gacha-recommendation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--color_main, #007cba);
}

.gacha-recommendation-item:last-child {
    margin-bottom: 0;
}

.gacha-recommendation-item:hover {
    border-color: var(--color_main, #007cba);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gacha-recommendation-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.gacha-recommendation-content {
    flex: 1;
    min-width: 0;
}

.gacha-recommendation-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gacha-recommendation-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gacha-recommendation-release-date {
    font-size: 0.8rem;
    color: #007cba;
    font-weight: bold;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.gacha-recommendation-score {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: bold;
    background: #d4edda;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.gacha-recommendation-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.gacha-recommendation-bookmark {
    padding: 0.25rem 0.5rem;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    color: #856404;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gacha-recommendation-bookmark:hover {
    background: #ffeaa7;
    border-color: #fdcb6e;
    color: #856404;
}

.gacha-recommendation-bookmark.bookmarked {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.gacha-recommendation-bookmark.bookmarked:hover {
    background: #ffca2c;
    border-color: #ffca2c;
    color: #212529;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .gacha-recommendation-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
        border: 1px solid #e0e0e0;
        border-left: 4px solid var(--color_main, #007cba);
    }
    
    .gacha-recommendation-thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .gacha-recommendation-content {
        flex: 1;
        min-width: 0;
    }
    
    .gacha-recommendation-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .gacha-recommendation-meta {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .gacha-recommendation-actions {
        width: auto;
        justify-content: flex-end;
    }
    
    .gacha-recommendation-bookmark {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
        position: relative;
    }
    
    /* スマホではアイコンのみ表示 */
    .gacha-recommendation-bookmark span {
        display: none;
    }
    
    /* アイコンを表示 */
    .gacha-recommendation-bookmark i {
        display: inline-block;
        font-size: 1rem;
    }
    
    /* ツールチップ */
    .gacha-recommendation-bookmark::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        margin-bottom: 5px;
    }
    
    .gacha-recommendation-bookmark:hover::after {
        opacity: 1;
        visibility: visible;
    }
    
    /* 閲覧履歴も同様に */
    .gacha-history-bookmark {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
        position: relative;
    }
    
    .gacha-history-bookmark span {
        display: none;
    }
    
    /* アイコンを表示 */
    .gacha-history-bookmark i {
        display: inline-block;
        font-size: 1rem;
    }
    
    .gacha-history-bookmark::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        margin-bottom: 5px;
    }
    
    .gacha-history-bookmark:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* コンパクトなプロフィールカード */
.gacha-profile-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.gacha-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    padding: 1rem 0 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

.gacha-profile-avatar {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gacha-profile-info {
    flex: 1;
    min-width: 0;
}

.gacha-profile-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.gacha-profile-username {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.gacha-profile-actions {
    flex-shrink: 0;
}

.gacha-profile-edit-btn {
    padding: 0.4rem 0.8rem;
    background: var(--color_main, #007cba);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gacha-profile-edit-btn:hover {
    background: var(--color_main_hover, #005a87);
}

.gacha-profile-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gacha-profile-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.gacha-profile-item:last-child {
    border-bottom: none;
}

.gacha-profile-label {
    font-weight: bold;
    color: #555;
    font-size: 0.85rem;
    min-width: 70px;
    flex-shrink: 0;
}

.gacha-profile-value {
    flex: 1;
    color: #333;
    font-size: 0.85rem;
}

.gacha-profile-edit-btn-small {
    padding: 0.2rem 0.4rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.gacha-profile-edit-btn-small:hover {
    background: #545b62;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .gacha-profile-card {
        padding: 0;
    }
    
    .gacha-profile-header {
        padding: 0.75rem 0;
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
    }
    
    .gacha-profile-avatar {
        width: 40px;
        height: 40px;
    }
    
    .gacha-profile-name {
        font-size: 1rem;
    }
    
    .gacha-profile-username {
        font-size: 0.8rem;
    }
    
    .gacha-profile-edit-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .gacha-profile-item {
        padding: 0.5rem 0;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .gacha-profile-label {
        min-width: 60px;
        font-size: 0.8rem;
    }
    
    .gacha-profile-value {
        font-size: 0.8rem;
    }
    
    .gacha-profile-edit-btn-small {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }
} 