/*
 * GMO Coin 取引履歴管理 - スタイルシート
 * 
 * 自動生成: externalize_assets.py
 * 生成日時: 2025-12-16 19:55:44
 */

:root {
            --primary-color: #e91e63;
            --secondary-color: #c2185b;
            --accent-color: #ff4081;
            --text-color: #333;
            --light-bg: #fce4ec;
            --white: #ffffff;
            --success-color: #4caf50;
            --warning-color: #ff9800;
            --info-color: #2196f3;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
            line-height: 1.8;
            color: var(--text-color);
            background: var(--light-bg);
            min-height: 100vh;
        }
        
        header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: var(--white);
            padding: 15px 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        }
        
        .header-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
        .logo-sub { font-size: 12px; opacity: 0.9; margin-left: 10px; }
        
        nav { display: flex; align-items: center; gap: 20px; }
        nav ul { list-style: none; display: flex; gap: 25px; }
        nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 14px; transition: opacity 0.3s; }
        nav a:hover { opacity: 0.8; }
        
        .main-content { padding: 100px 20px 60px; max-width: 1200px; margin: 0 auto; }
        
        /* ============================================================ */
        /* ランディングページ（ログイン前）スタイル */
        /* ============================================================ */
        .landing-page { display: block; }
        .dashboard-page { display: none; }
        
        .hero-card {
            background: var(--white);
            border-radius: 20px;
            padding: 60px 40px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(233, 30, 99, 0.15);
            margin-bottom: 40px;
        }
        
        .hero-icon { font-size: 64px; margin-bottom: 20px; }
        .hero-card h1 { font-size: 36px; color: var(--primary-color); margin-bottom: 15px; }
        .hero-card p { font-size: 18px; color: #666; max-width: 600px; margin: 0 auto 30px; }
        
        .status-badge {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            padding: 10px 30px;
            border-radius: 25px;
            font-weight: 600;
        }
        
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }
        
        .feature-card {
            background: var(--white);
            padding: 35px 25px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            transition: transform 0.3s;
        }
        
        .feature-card:hover { transform: translateY(-5px); }
        .feature-icon { font-size: 40px; margin-bottom: 15px; }
        .feature-card h3 { font-size: 18px; color: var(--primary-color); margin-bottom: 10px; }
        .feature-card p { color: #666; font-size: 14px; line-height: 1.7; }
        
        .info-section {
            background: var(--white);
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .info-section h2 {
            font-size: 24px;
            color: var(--primary-color);
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light-bg);
        }
        
        .info-list { list-style: none; }
        .info-list li { padding: 12px 0; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; }
        .info-list li:last-child { border-bottom: none; }
        .info-list .icon { margin-right: 12px; font-size: 20px; }
        
        /* ============================================================ */
        /* ダッシュボード（ログイン後）スタイル */
        /* ============================================================ */
        .dashboard-header {
            background: var(--white);
            border-radius: 20px;
            padding: 30px 40px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .welcome-section h1 {
            font-size: 28px;
            color: var(--primary-color);
            margin-bottom: 5px;
        }
        
        .welcome-section p {
            color: #666;
            font-size: 14px;
        }
        
        .last-update {
            text-align: right;
            color: #999;
            font-size: 13px;
        }
        
        .summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .summary-card {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .summary-card.profit { border-left: 4px solid var(--success-color); }
        .summary-card.loss { border-left: 4px solid var(--primary-color); }
        .summary-card.total { border-left: 4px solid var(--info-color); }
        .summary-card.count { border-left: 4px solid var(--warning-color); }
        
        .summary-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .summary-card-title {
            font-size: 14px;
            color: #666;
            font-weight: 500;
        }
        
        .summary-card-icon {
            font-size: 24px;
        }
        
        .summary-card-value {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-color);
        }
        
        .summary-card-value.positive { color: var(--success-color); }
        .summary-card-value.negative { color: var(--primary-color); }
        
        .summary-card-sub {
            font-size: 13px;
            color: #999;
            margin-top: 5px;
        }
        
        .dashboard-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 25px;
        }
        
        @media (max-width: 900px) {
            .dashboard-grid { grid-template-columns: 1fr; }
        }
        
        .panel {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light-bg);
        }
        
        .panel-title {
            font-size: 18px;
            color: var(--primary-color);
            font-weight: 600;
        }
        
        .panel-action {
            font-size: 13px;
            color: var(--primary-color);
            text-decoration: none;
            cursor: pointer;
        }
        
        .panel-action:hover { text-decoration: underline; }
        
        .transaction-list { list-style: none; }
        
        .transaction-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .transaction-item:last-child { border-bottom: none; }
        
        .transaction-info { display: flex; align-items: center; gap: 12px; }
        .transaction-icon { font-size: 28px; }
        .transaction-name { font-weight: 600; color: #333; }
        .transaction-date { font-size: 12px; color: #999; }
        .transaction-amount { font-weight: 600; }
        .transaction-amount.buy { color: var(--primary-color); }
        .transaction-amount.sell { color: var(--success-color); }
        
        .quick-actions { list-style: none; }
        
        .quick-action-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 10px;
            background: var(--light-bg);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .quick-action-item:hover {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
        }
        
        .quick-action-icon { font-size: 24px; }
        .quick-action-text { font-weight: 500; }
        
        .no-data {
            text-align: center;
            padding: 40px;
            color: #999;
        }
        
        .no-data-icon { font-size: 48px; margin-bottom: 15px; }
        
        /* ============================================================ */
        /* フッター */
        /* ============================================================ */
        footer {
            background: var(--secondary-color);
            color: rgba(255,255,255,0.8);
            text-align: center;
            padding: 25px 20px;
            font-size: 13px;
        }
        
        footer a { color: white; text-decoration: none; }
        footer a:hover { text-decoration: underline; }
        
        /* ============================================================ */
        /* モーダル・認証UI */
        /* ============================================================ */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }
        
        .modal-content {
            position: relative;
            background: white;
            border-radius: 20px;
            padding: 40px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            animation: modalSlideIn 0.3s ease;
        }
        
        @keyframes modalSlideIn {
            from { transform: translateY(-20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #999;
            transition: color 0.3s;
        }
        
        .modal-close:hover { color: var(--primary-color); }
        
        .modal-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
        }
        
        .tab-btn {
            flex: 1;
            padding: 12px;
            border: none;
            background: #f5f5f5;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .tab-btn.active {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
        }
        
        .auth-form .form-group { margin-bottom: 20px; }
        .auth-form label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
        .auth-form input {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #eee;
            border-radius: 10px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        .auth-form input:focus { outline: none; border-color: var(--primary-color); }
        
        .form-message {
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 15px;
            display: none;
        }
        .form-message.error { display: block; background: #ffebee; color: #c62828; }
        .form-message.success { display: block; background: #e8f5e9; color: #2e7d32; }
        
        .submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3); }
        
        .user-menu { display: flex; align-items: center; gap: 15px; }
        .user-info { display: flex; align-items: center; gap: 8px; color: white; }
        .user-avatar {
            width: 32px;
            height: 32px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .login-btn, .logout-btn {
            padding: 8px 20px;
            background: rgba(255,255,255,0.2);
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 500;
            transition: background 0.3s;
        }
        .login-btn:hover, .logout-btn:hover { background: rgba(255,255,255,0.3); }
        
        /* レスポンシブ */
        @media (max-width: 768px) {
            .hero-card h1 { font-size: 28px; }
            .hero-card { padding: 40px 25px; }
            nav ul { display: none; }
            .info-section { padding: 25px; }
            .dashboard-header { flex-direction: column; text-align: center; gap: 15px; }
            .summary-card-value { font-size: 24px; }
        }
    
        /* ============================================================ */
        /* ユーザードロップダウンメニュー */
        /* ============================================================ */
        .user-dropdown {
            position: relative;
            display: inline-block;
        }
        
        .user-dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: rgba(255,255,255,0.15);
            border: none;
            border-radius: 25px;
            color: white;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .user-dropdown-toggle:hover {
            background: rgba(255,255,255,0.25);
        }
        
        .user-dropdown-toggle .user-avatar {
            width: 32px;
            height: 32px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }
        
        .user-dropdown-toggle .user-name {
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 500;
        }
        
        .user-dropdown-toggle .dropdown-arrow {
            font-size: 10px;
            transition: transform 0.3s;
        }
        
        .user-dropdown.open .dropdown-arrow {
            transform: rotate(180deg);
        }
        
        .user-dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 200px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s;
            z-index: 1001;
            overflow: hidden;
        }
        
        .user-dropdown.open .user-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-header {
            padding: 15px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
        }
        
        .dropdown-header .email {
            font-size: 12px;
            opacity: 0.9;
            word-break: break-all;
        }
        
        .dropdown-header .username {
            font-weight: 600;
            margin-bottom: 2px;
        }
        
        .dropdown-divider {
            height: 1px;
            background: #eee;
            margin: 0;
        }
        
        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            color: #333;
            text-decoration: none;
            transition: background 0.2s;
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            font-size: 14px;
        }
        
        .dropdown-item:hover {
            background: var(--light-bg);
        }
        
        .dropdown-item .item-icon {
            font-size: 18px;
            width: 24px;
            text-align: center;
        }
        
        .dropdown-item.danger {
            color: #e53935;
        }
        
        .dropdown-item.danger:hover {
            background: #ffebee;
        }
        
        /* マイページスタイル */
        .mypage-section {
            display: none;
        }
        
        .mypage-section.active {
            display: block;
        }
        
        .mypage-header {
            background: var(--white);
            border-radius: 20px;
            padding: 30px 40px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .mypage-header h1 {
            font-size: 28px;
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        
        .mypage-header p {
            color: #666;
        }
        
        .mypage-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .mypage-card {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .mypage-card h3 {
            font-size: 18px;
            color: var(--primary-color);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--light-bg);
        }
        
        .profile-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .profile-item:last-child {
            border-bottom: none;
        }
        
        .profile-label {
            color: #666;
            font-size: 14px;
        }
        
        .profile-value {
            font-weight: 500;
        }
        
        .action-list {
            list-style: none;
        }
        
        .action-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 10px;
            background: var(--light-bg);
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            color: inherit;
        }
        
        .action-item:hover {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
        }
        
        .action-item.danger {
            background: #ffebee;
            color: #c62828;
        }
        
        .action-item.danger:hover {
            background: #ef5350;
            color: white;
        }

    
        /* ============================================================ */
        /* オーバービューセクション */
        /* ============================================================ */
        .overview-section {
            display: none;
        }
        
        .overview-section.active {
            display: block;
        }
        
        .overview-hero {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
            border-radius: 20px;
            padding: 50px 40px;
            text-align: center;
            color: var(--white);
            margin-bottom: 30px;
            box-shadow: 0 10px 40px rgba(233, 30, 99, 0.2);
        }
        
        .overview-hero h1 {
            font-size: 36px;
            margin-bottom: 15px;
        }
        
        .overview-hero p {
            font-size: 18px;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto 25px;
        }
        
        .overview-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .overview-stat-card {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            transition: transform 0.3s;
        }
        
        .overview-stat-card:hover {
            transform: translateY(-5px);
        }
        
        .overview-stat-icon {
            font-size: 36px;
            margin-bottom: 10px;
        }
        
        .overview-stat-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 5px;
        }
        
        .overview-stat-label {
            font-size: 14px;
            color: #666;
        }
        
        .overview-menu {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }
        
        .overview-menu-card {
            background: var(--white);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            transition: all 0.3s;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: block;
        }
        
        .overview-menu-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
        }
        
        .overview-menu-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .overview-menu-icon {
            font-size: 40px;
        }
        
        .overview-menu-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .overview-menu-description {
            color: #666;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .overview-menu-arrow {
            text-align: right;
            color: var(--primary-color);
            font-size: 20px;
            margin-top: 15px;
        }
        
        /* 戻るリンク */
        .back-to-overview {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 14px;
            margin-bottom: 20px;
            padding: 8px 15px;
            background: rgba(233, 30, 99, 0.1);
            border-radius: 20px;
            transition: all 0.3s;
        }
        
        .back-to-overview:hover {
            background: rgba(233, 30, 99, 0.2);
        }
        
        /* ヘッダーロゴをクリック可能に */
        .logo-link {
            text-decoration: none;
            color: inherit;
            cursor: pointer;
        }
        
        .logo-link:hover {
            opacity: 0.9;
        }
        
        @media (max-width: 768px) {
            .overview-hero h1 { font-size: 28px; }
            .overview-hero { padding: 40px 25px; }
            .overview-stat-value { font-size: 22px; }
        }


        /* ============================================================ */
        /* API設定セクションのスタイル */
        /* ============================================================ */
        .api-settings-section {
            display: none;
        }
        
        .settings-header {
            background: var(--white);
            border-radius: 20px;
            padding: 30px 40px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .settings-header h1 {
            font-size: 28px;
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        
        .settings-header p {
            color: #666;
        }
        
        .settings-guide {
            background: #e3f2fd;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }
        
        .settings-guide h3 {
            color: #1565c0;
            margin-bottom: 15px;
        }
        
        .settings-guide ol {
            margin-left: 20px;
            color: #333;
        }
        
        .settings-guide li {
            margin-bottom: 8px;
        }
        
        .settings-guide a {
            color: var(--primary-color);
        }
        
        .guide-warning {
            margin-top: 15px;
            padding: 12px;
            background: #fff3e0;
            border-radius: 8px;
            color: #e65100;
            font-size: 14px;
        }
        
        .api-keys-panel {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .api-keys-list {
            margin-top: 20px;
        }
        
        .api-key-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background: var(--light-bg);
            border-radius: 10px;
            margin-bottom: 15px;
        }
        
        .api-key-info {
            flex: 1;
        }
        
        .api-key-label {
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }
        /* APIキー詳細表示 */
        .api-key-details {
            margin: 10px 0;
        }
        
        .api-key-row {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
            font-size: 14px;
        }
        
        .api-key-row .key-type {
            color: #666;
            width: 100px;
            flex-shrink: 0;
        }
        
        .api-key-row .key-value {
            font-family: monospace;
            color: #333;
            background: rgba(0,0,0,0.05);
            padding: 3px 8px;
            border-radius: 4px;
        }
        
        .api-key-label {
            font-weight: 600;
            color: var(--primary-color);
            font-size: 16px;
            margin-bottom: 5px;
        }

        
        .api-key-masked {
            font-family: monospace;
            color: #666;
            font-size: 14px;
        }
        
        .api-key-status {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
        }
        
        .status-badge.verified {
            background: #e8f5e9;
            color: #2e7d32;
        }
        
        .status-badge.unverified {
            background: #fff3e0;
            color: #e65100;
        }
        
        .api-key-actions {
            display: flex;
            gap: 10px;
        }
        
        .btn-verify, .btn-delete {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .btn-verify {
            background: #e3f2fd;
            color: #1565c0;
        }
        
        .btn-verify:hover {
            background: #bbdefb;
        }
        
        .btn-delete {
            background: #ffebee;
            color: #c62828;
        }
        
        .btn-delete:hover {
            background: #ffcdd2;
        }
        
        .btn-add {
            padding: 10px 20px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .btn-add:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
        }
        
        .no-api-keys {
            text-align: center;
            padding: 40px;
            color: #999;
        }
        
        .no-api-keys-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }
        
        .api-key-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .api-key-modal .modal-content {
            max-width: 500px;
        }

        /* APIキー追加フォーム（インライン） */
        
        /* API種類選択スタイル */
        .api-type-selector {
            margin-bottom: 20px;
        }
        .api-type-selector label.group-label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        .api-type-options {
            display: flex;
            gap: 20px;
        }
        .api-type-option {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            border: 2px solid #ddd;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            flex: 1;
        }
        .api-type-option:hover {
            border-color: #e91e63;
            background: #fce4ec;
        }
        .api-type-option.selected {
            border-color: #e91e63;
            background: linear-gradient(135deg, #fce4ec 0%, #fff 100%);
        }
        .api-type-option input[type="radio"] {
            margin-right: 10px;
            accent-color: #e91e63;
        }
        .api-type-option .option-content {
            display: flex;
            flex-direction: column;
        }
        .api-type-option .option-title {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        .api-type-option .option-desc {
            font-size: 12px;
            color: #666;
            margin-top: 2px;
        }
        /* APIキー一覧でのタイプバッジ */
        .api-type-badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            margin-left: 8px;
        }
        .api-type-badge.crypto {
            background: #e3f2fd;
            color: #1565c0;
        }
        .api-type-badge.forex {
            background: #fff3e0;
            color: #e65100;
        }

        .api-key-add-form {
            display: none;
            background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
            border: 2px solid var(--primary-color);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 25px;
            animation: slideDown 0.3s ease;
        }
        
        .api-key-add-form.active {
            display: block;
        }
        
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .api-key-add-form h3 {
            color: var(--primary-color);
            margin-bottom: 20px;
            font-size: 20px;
        }
        
        .api-key-add-form .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .api-key-add-form .form-row.full-width {
            grid-template-columns: 1fr;
        }
        
        .api-key-add-form .form-group {
            margin-bottom: 0;
        }
        
        .api-key-add-form label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        
        .api-key-add-form input[type="text"],
        .api-key-add-form input[type="password"] {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #ddd;
            border-radius: 10px;
            font-size: 16px;
            font-family: monospace;
            transition: all 0.3s;
            background: white;
        }
        
        .api-key-add-form input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
        }
        
        .api-key-add-form input::placeholder {
            color: #aaa;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }
        
        .api-key-add-form .form-hint {
            font-size: 12px;
            color: #888;
            margin-top: 5px;
        }
        
        .api-key-add-form .form-actions {
            display: flex;
            gap: 15px;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        
        .api-key-add-form .btn-submit {
            flex: 1;
            padding: 14px 30px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .api-key-add-form .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
        }
        
        .api-key-add-form .btn-cancel {
            padding: 14px 30px;
            background: #f5f5f5;
            color: #666;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .api-key-add-form .btn-cancel:hover {
            background: #eee;
        }
        
        .api-key-add-form .form-message {
            margin-top: 15px;
            padding: 12px 15px;
            border-radius: 8px;
            font-size: 14px;
        }
        
        @media (max-width: 768px) {
            .api-key-add-form .form-row {
                grid-template-columns: 1fr;
            }
            
            .api-key-add-form .form-actions {
                flex-direction: column;
            }
        }



        /* ============================================================ */
        /* トースト通知（ログアウト等のフィードバック用） */
        /* ============================================================ */
        .toast-container {
            position: fixed;
            top: 80px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .toast {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 24px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            transform: translateX(120%);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            min-width: 280px;
            max-width: 400px;
        }
        
        .toast.show {
            transform: translateX(0);
            opacity: 1;
        }
        
        .toast.hide {
            transform: translateX(120%);
            opacity: 0;
        }
        
        .toast-icon {
            font-size: 24px;
            flex-shrink: 0;
        }
        
        .toast-content {
            flex: 1;
        }
        
        .toast-title {
            font-weight: 600;
            color: #333;
            margin-bottom: 2px;
        }
        
        .toast-message {
            font-size: 14px;
            color: #666;
        }
        
        .toast.success {
            border-left: 4px solid #4caf50;
        }
        
        .toast.success .toast-icon {
            color: #4caf50;
        }
        
        .toast.error {
            border-left: 4px solid #f44336;
        }
        
        .toast.error .toast-icon {
            color: #f44336;
        }
        
        .toast.info {
            border-left: 4px solid #2196f3;
        }
        
        .toast.info .toast-icon {
            color: #2196f3;
        }
        
        .toast.warning {
            border-left: 4px solid #ff9800;
        }
        
        .toast.warning .toast-icon {
            color: #ff9800;
        }
        
        /* ページ遷移オーバーレイ */
        .page-transition-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.95);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }
        
        .page-transition-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .logout-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }
        
        .logout-message {
            font-size: 18px;
            color: var(--primary-color);
            font-weight: 500;
        }
        
        /* ログアウトボタンのローディング状態 */
        .dropdown-item.loading {
            pointer-events: none;
            opacity: 0.7;
        }
        
        .dropdown-item.loading .item-icon {
            animation: spin 1s linear infinite;
        }


        /* ============================================================ */
        /* API設定ページ（1ページ表示最適化） */
        /* ============================================================ */
        .api-settings-page {
            display: none;
        }
        
        .api-settings-page.active {
            display: block !important;
        }
        
        .api-page-container {
            max-width: 900px;
            margin: 0 auto;
        }
        
        .api-page-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border-radius: 20px;
            padding: 40px;
            color: var(--white);
            margin-bottom: 30px;
            text-align: center;
        }
        
        .api-page-header h1 {
            font-size: 32px;
            margin-bottom: 10px;
        }
        
        .api-page-header p {
            opacity: 0.9;
            font-size: 16px;
        }
        
        /* API設定ガイド（コンパクト版） */
        .api-guide-compact {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .api-guide-compact h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .guide-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }
        
        .guide-step {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px;
            background: var(--light-bg);
            border-radius: 10px;
            font-size: 14px;
        }
        
        .guide-step .step-num {
            background: var(--primary-color);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            flex-shrink: 0;
        }
        
        .guide-step a {
            color: var(--primary-color);
            text-decoration: none;
        }
        
        .guide-step a:hover {
            text-decoration: underline;
        }
        
        .api-security-notice {
            background: linear-gradient(135deg, #fff3e0, #ffe0b2);
            border-radius: 10px;
            padding: 15px 20px;
            margin-top: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            color: #e65100;
        }
        
        .api-security-notice .notice-icon {
            font-size: 24px;
        }
        
        /* APIキー管理パネル */
        .api-keys-management {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .api-keys-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light-bg);
        }
        
        .api-keys-title {
            font-size: 20px;
            color: var(--primary-color);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .api-keys-count {
            background: var(--light-bg);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 13px;
            color: #666;
        }
        
        /* APIキー追加フォーム（改善版） */
        .api-key-form-container {
            display: none;
            background: linear-gradient(135deg, #fce4ec 0%, #fff 100%);
            border: 2px solid var(--primary-color);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 25px;
            animation: formSlideIn 0.3s ease;
        }
        
        .api-key-form-container.active {
            display: block;
        }
        
        @keyframes formSlideIn {
            from { 
                opacity: 0; 
                transform: translateY(-15px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }
        
        .api-key-form-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .api-key-form-header h3 {
            color: var(--primary-color);
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .btn-close-form {
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            padding: 5px;
            transition: color 0.3s;
        }
        
        .btn-close-form:hover {
            color: var(--primary-color);
        }
        
        .api-form-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .api-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        @media (max-width: 600px) {
            .api-form-row {
                grid-template-columns: 1fr;
            }
        }
        
        .api-form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        
        .api-form-group label .required {
            color: var(--primary-color);
            margin-left: 3px;
        }
        
        .api-form-input {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 15px;
            transition: all 0.3s;
            background: white;
        }
        
        .api-form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
        }
        
        .api-form-input::placeholder {
            color: #aaa;
        }
        
        .api-form-input.monospace {
            font-family: 'Monaco', 'Consolas', monospace;
        }
        
        .api-form-hint {
            font-size: 12px;
            color: #888;
            margin-top: 6px;
        }
        
        .api-form-actions {
            display: flex;
            gap: 15px;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        
        .btn-form-submit {
            flex: 1;
            padding: 14px 30px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-form-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
        }
        
        .btn-form-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .btn-form-cancel {
            padding: 14px 30px;
            background: #f5f5f5;
            color: #666;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-form-cancel:hover {
            background: #eee;
        }
        
        .api-form-message {
            padding: 12px 16px;
            border-radius: 8px;
            margin-top: 15px;
            font-size: 14px;
            display: none;
        }
        
        .api-form-message.error {
            display: block;
            background: #ffebee;
            color: #c62828;
            border: 1px solid #ef9a9a;
        }
        
        .api-form-message.success {
            display: block;
            background: #e8f5e9;
            color: #2e7d32;
            border: 1px solid #a5d6a7;
        }
        
        /* APIキーリスト（改善版） */
        .api-keys-list-container {
            margin-top: 20px;
        }
        
        .api-key-card {
            background: var(--light-bg);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            transition: all 0.3s;
        }
        
        .api-key-card:hover {
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }
        
        .api-key-card:last-child {
            margin-bottom: 0;
        }
        
        .api-key-main {
            flex: 1;
        }
        
        .api-key-label-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }
        
        .api-key-label-text {
            font-size: 16px;
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .api-key-status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .api-key-status-badge.verified {
            background: #e8f5e9;
            color: #2e7d32;
        }
        
        .api-key-status-badge.unverified {
            background: #fff3e0;
            color: #e65100;
        }
        
        .api-key-credentials {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .api-key-credential {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
        }
        
        .credential-label {
            color: #666;
            min-width: 80px;
        }
        
        .credential-value {
            font-family: 'Monaco', 'Consolas', monospace;
            background: rgba(0,0,0,0.05);
            padding: 4px 10px;
            border-radius: 6px;
            color: #333;
        }
        
        .api-key-meta {
            font-size: 12px;
            color: #999;
        }
        
        .api-key-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .btn-key-action {
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .btn-key-verify {
            background: #e3f2fd;
            color: #1565c0;
        }
        
        .btn-key-verify:hover {
            background: #bbdefb;
        }
        
        .btn-key-delete {
            background: #ffebee;
            color: #c62828;
        }
        
        .btn-key-delete:hover {
            background: #ffcdd2;
        }
        
        /* 空状態 */
        .api-keys-empty {
            text-align: center;
            padding: 50px 20px;
            color: #999;
        }
        
        .api-keys-empty-icon {
            font-size: 56px;
            margin-bottom: 15px;
            opacity: 0.5;
        }
        
        .api-keys-empty h4 {
            font-size: 18px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .api-keys-empty p {
            font-size: 14px;
        }
        
        /* ナビゲーションリンク */
        .api-page-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .btn-back-nav {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 14px;
            padding: 10px 18px;
            background: rgba(233, 30, 99, 0.1);
            border-radius: 25px;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }
        
        .btn-back-nav:hover {
            background: rgba(233, 30, 99, 0.2);
        }
        
        .btn-add-key {
            padding: 12px 24px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-add-key:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
        }
        
        /* レスポンシブ対応 */
        @media (max-width: 768px) {
            .api-page-header {
                padding: 30px 20px;
            }
            
            .api-page-header h1 {
                font-size: 24px;
            }
            
            .guide-steps {
                grid-template-columns: 1fr;
            }
            
            .api-key-card {
                flex-direction: column;
                gap: 15px;
            }
            
            .api-key-actions {
                flex-direction: row;
                width: 100%;
            }
            
            .btn-key-action {
                flex: 1;
                justify-content: center;
            }
            
            .api-page-nav {
                flex-direction: column;
                gap: 15px;
            }
            
            .btn-add-key {
                width: 100%;
                justify-content: center;
            }
        }


        /* ============================================================ */
        /* レポートページスタイル */
        /* ============================================================ */
        .reports-page {
            display: none;
        }
        
        .reports-page.active {
            display: block !important;
        }
        
        .reports-container {
            max-width: 1100px;
            margin: 0 auto;
        }
        
        .reports-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border-radius: 20px;
            padding: 40px;
            color: var(--white);
            margin-bottom: 30px;
            text-align: center;
        }
        
        .reports-header h1 {
            font-size: 32px;
            margin-bottom: 10px;
        }
        
        .reports-header p {
            opacity: 0.9;
            font-size: 16px;
        }
        
        /* レポート期間選択 */
        .report-period-selector {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .report-period-selector h3 {
            color: var(--primary-color);
            margin-bottom: 20px;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .period-options {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        
        .period-btn {
            padding: 12px 24px;
            border: 2px solid #e0e0e0;
            border-radius: 25px;
            background: white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .period-btn:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }
        
        .period-btn.active {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            border-color: transparent;
        }
        
        .custom-period {
            display: none;
            padding: 20px;
            background: var(--light-bg);
            border-radius: 10px;
            margin-top: 15px;
        }
        
        .custom-period.active {
            display: block;
        }
        
        .custom-period-row {
            display: flex;
            gap: 20px;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .custom-period-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .custom-period-group label {
            font-weight: 500;
            color: #666;
        }
        
        .custom-period-group input[type="date"] {
            padding: 10px 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
        }
        
        .custom-period-group input[type="date"]:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        
        /* 計算方法選択 */
        .calc-method-selector {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .calc-method-selector h3 {
            color: var(--primary-color);
            margin-bottom: 20px;
            font-size: 18px;
        }
        
        .method-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }
        
        .method-card {
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .method-card:hover {
            border-color: var(--primary-color);
        }
        
        .method-card.selected {
            border-color: var(--primary-color);
            background: rgba(233, 30, 99, 0.05);
        }
        
        .method-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .method-radio {
            width: 20px;
            height: 20px;
            border: 2px solid #ddd;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .method-card.selected .method-radio {
            border-color: var(--primary-color);
            background: var(--primary-color);
        }
        
        .method-card.selected .method-radio::after {
            content: '';
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
        }
        
        .method-title {
            font-weight: 600;
            font-size: 16px;
            color: #333;
        }
        
        .method-description {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
        }
        
        .method-tag {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 12px;
            margin-top: 10px;
        }
        
        .method-tag.recommended {
            background: #e8f5e9;
            color: #2e7d32;
        }
        
        .method-tag.advanced {
            background: #e3f2fd;
            color: #1565c0;
        }
        
        /* レポート結果 */
        .report-results {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .report-results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light-bg);
        }
        
        .report-results-title {
            font-size: 20px;
            color: var(--primary-color);
            font-weight: 600;
        }
        
        .report-actions {
            display: flex;
            gap: 10px;
        }
        
        .btn-report-action {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-generate {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
        }
        
        .btn-generate:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
        }
        
        .btn-generate:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .btn-export {
            background: #e3f2fd;
            color: #1565c0;
        }
        
        .btn-export:hover {
            background: #bbdefb;
        }
        
        .btn-pdf {
            background: #ffebee;
            color: #c62828;
        }
        
        .btn-pdf:hover {
            background: #ffcdd2;
        }
        
        /* サマリーカード */
        .report-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .summary-item {
            background: var(--light-bg);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
        }
        
        .summary-item-icon {
            font-size: 28px;
            margin-bottom: 8px;
        }
        
        .summary-item-value {
            font-size: 24px;
            font-weight: 700;
            color: #333;
            margin-bottom: 5px;
        }
        
        .summary-item-value.positive {
            color: var(--success-color);
        }
        
        .summary-item-value.negative {
            color: var(--primary-color);
        }
        
        .summary-item-label {
            font-size: 13px;
            color: #666;
        }
        
        /* 詳細テーブル */
        .report-table-container {
            overflow-x: auto;
        }
        
        .report-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        
        .report-table th,
        .report-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        
        .report-table th {
            background: var(--light-bg);
            font-weight: 600;
            color: #333;
            position: sticky;
            top: 0;
        }
        
        .report-table tr:hover {
            background: rgba(233, 30, 99, 0.02);
        }
        
        .report-table .amount {
            text-align: right;
            font-family: monospace;
        }
        
        .report-table .positive {
            color: var(--success-color);
        }
        
        .report-table .negative {
            color: var(--primary-color);
        }
        
        /* 空状態 */
        .report-empty {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }
        
        .report-empty-icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.5;
        }
        
        .report-empty h4 {
            font-size: 20px;
            color: #666;
            margin-bottom: 10px;
        }
        
        .report-empty p {
            font-size: 14px;
            max-width: 400px;
            margin: 0 auto;
        }
        
        /* 取引分析セクション */
        .tax-report-section {
            background: linear-gradient(135deg, #fff3e0, #ffe0b2);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }
        
        .tax-report-section h3 {
            color: #e65100;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .tax-report-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        @media (max-width: 768px) {
            .tax-report-content {
                grid-template-columns: 1fr;
            }
        }
        
        .tax-item {
            background: white;
            border-radius: 10px;
            padding: 15px;
        }
        
        .tax-item-label {
            font-size: 13px;
            color: #666;
            margin-bottom: 5px;
        }
        
        .tax-item-value {
            font-size: 20px;
            font-weight: 600;
            color: #333;
        }
        
        /* ナビゲーション */
        .report-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .btn-back-report {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 14px;
            padding: 10px 18px;
            background: rgba(233, 30, 99, 0.1);
            border-radius: 25px;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }
        
        .btn-back-report:hover {
            background: rgba(233, 30, 99, 0.2);
        }
        
        /* レスポンシブ */
        @media (max-width: 768px) {
            .reports-header {
                padding: 30px 20px;
            }
            
            .reports-header h1 {
                font-size: 24px;
            }
            
            .period-options {
                flex-direction: column;
            }
            
            .period-btn {
                width: 100%;
                text-align: center;
            }
            
            .report-actions {
                flex-direction: column;
                width: 100%;
            }
            
            .btn-report-action {
                width: 100%;
                justify-content: center;
            }
            
            .summary-item-value {
                font-size: 20px;
            }
        }