/* ==================== グローバルスタイル ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ==================== v1シンプルなログイン画面 ==================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* ==================== ボタンスタイル ==================== */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    padding: 10px 20px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-logout {
    padding: 10px 20px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
    position: relative;
    z-index: 10;
    /* タッチデバイス対応 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-logout:hover {
    background: white;
    color: #667eea;
}

.btn-logout:active {
    transform: scale(0.95);
}

.btn-add {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add:hover {
    background: #5568d3;
}

.btn-add i {
    margin-right: 5px;
}

/* ==================== アプリセクション ==================== */
.app-section {
    min-height: 100vh;
}

/* ヘッダー */
.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-content h1 i {
    margin-right: 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.user-name {
    font-size: 16px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none; /* テキストがクリックを妨げないように */
}

/* 創設メンバーバッジ */
.founder-badge-container {
    position: relative;
    margin-right: 15px;
}

.founder-badge {
    padding: 8px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: badge-entrance 0.6s ease-out;
}

@keyframes badge-entrance {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.founder-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

.badge-icon {
    font-size: 20px;
    animation: icon-bounce 2s infinite;
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.badge-subtitle {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
}

.badge-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #2d3748;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.badge-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #2d3748;
}

.founder-badge-container:hover .badge-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ダッシュボード統計 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    font-size: 16px;
    color: #667eea;
    cursor: pointer;
    transition: color 0.3s;
}

.info-icon:hover {
    color: #764ba2;
}

/* リマインダーセクション */
.reminder-section {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.reminder-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #856404;
}

.reminder-section h3 i {
    margin-right: 8px;
}

.reminder-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reminder-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reminder-item strong {
    color: #333;
}

.reminder-item span {
    color: #856404;
    font-weight: 600;
}

/* グラフセクション */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.chart-card canvas {
    max-height: 300px;
}

/* タブとコントロール */
.controls {
    background: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 15px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-button:hover {
    color: #667eea;
}

.control-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

#categoryFilter {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* タブコンテンツ */
.tab-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

/* 月別セクション */
.month-section {
    margin-bottom: 40px;
}

.month-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.month-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-title i {
    font-size: 18px;
}

.month-count {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    margin-left: 5px;
}

/* サブスクリプションリスト */
.subscription-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* 登録済みサブスクリスト（テーブル形式） */
.registered-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.registered-list-table {
    width: 100%;
    border-collapse: collapse;
}

.registered-list-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.registered-list-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.registered-list-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.registered-list-table tbody tr:hover {
    background: #f9f9f9;
}

.registered-list-table tbody tr:last-child {
    border-bottom: none;
}

.registered-list-table td {
    padding: 15px;
    font-size: 14px;
    color: #333;
}

.registered-list-table .service-name {
    font-weight: 600;
    color: #667eea;
}

.registered-list-table .category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.registered-list-table .category-tag.entertainment { background: #e74c3c; }
.registered-list-table .category-tag.business { background: #3498db; }
.registered-list-table .category-tag.health { background: #2ecc71; }
.registered-list-table .category-tag.education { background: #f39c12; }
.registered-list-table .category-tag.other { background: #9b59b6; }

.registered-list-table .price-cell {
    font-weight: 600;
    color: #667eea;
}

.registered-list-table .action-buttons {
    display: flex;
    gap: 8px;
}

.registered-list-table .btn-list-action {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.registered-list-table .btn-list-action i {
    font-size: 12px;
}

.registered-list-table .btn-list-edit {
    background: #667eea;
    color: white;
}

.registered-list-table .btn-list-edit:hover {
    background: #5568d3;
}

.registered-list-table .btn-list-archive {
    background: #e0e0e0;
    color: #666;
}

.registered-list-table .btn-list-archive:hover {
    background: #d0d0d0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .month-section-header {
        padding: 12px 15px;
    }
    
    .month-title {
        font-size: 18px;
    }
    
    .month-count {
        font-size: 14px;
    }
    
    /* スマホでは登録済みサブスクのテーブルを非表示にする */
    .registered-list-table {
        display: none !important;
    }
    
    /* スマホではカード形式で表示 */
    .registered-list-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
}

/* PCではカード形式を非表示にする */
@media (min-width: 769px) {
    .registered-list-cards {
        display: none;
    }
}

.subscription-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.subscription-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.category-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.category-badge.entertainment { background: #e74c3c; }
.category-badge.business { background: #3498db; }
.category-badge.health { background: #2ecc71; }
.category-badge.education { background: #f39c12; }
.category-badge.other { background: #9b59b6; }

.subscription-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-row .label {
    color: #666;
}

.detail-row .value {
    color: #333;
    font-weight: 600;
}

.price {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
}

.subscription-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-action:hover {
    opacity: 0.8;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-archive {
    background: #f39c12;
    color: white;
}

.btn-restore {
    background: #2ecc71;
    color: white;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

/* 支払い履歴 */
.history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.history-filters select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.history-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.summary-card h4 {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.history-total {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.history-count {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.payment-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-history-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.payment-history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.payment-info {
    flex: 1;
}

.payment-service {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.payment-date {
    font-size: 14px;
    color: #666;
}

.payment-amount {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    animation: slideDown 0.3s;
}

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

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

.modal-header h2 {
    font-size: 24px;
    color: #333;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #333;
    color: white;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
    z-index: 2000;
}

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

.notification.success {
    background: #2ecc71;
}

.notification.error {
    background: #e74c3c;
}

/* ツールチップモーダル */
.tooltip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.tooltip-modal.show {
    display: flex;
}

.tooltip-content {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s;
}

.tooltip-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-header h3 {
    margin: 0;
    color: #667eea;
    font-size: 20px;
}

.tooltip-header .close {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.tooltip-header .close:hover {
    color: #333;
}

.tooltip-body {
    padding: 20px;
}

.tooltip-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 広告バナー */
.ad-banner {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-left: 4px solid #e17055;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(225, 112, 85, 0.2);
    animation: fadeIn 0.5s;
}

.ad-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ad-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2d3436;
    font-size: 15px;
}

.ad-text i {
    font-size: 28px;
    color: #e17055;
    flex-shrink: 0;
}

.ad-text strong {
    color: #d63031;
}

.ad-upgrade-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(225, 112, 85, 0.3);
}

.ad-upgrade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(225, 112, 85, 0.5);
}

.ad-upgrade-btn i {
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-logout {
        min-width: 120px;
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .user-name {
        max-width: 200px;
    }
    
    /* 創設メンバーバッジ（スマホ） */
    .founder-badge {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .badge-icon {
        font-size: 16px;
    }
    
    .badge-title {
        font-size: 12px;
    }
    
    .badge-subtitle {
        display: none; /* スマホでは登録日を非表示 */
    }
    
    .badge-tooltip {
        white-space: normal;
        max-width: 200px;
        font-size: 12px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .tabs {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 3px;
    }
    
    .tab-button {
        font-size: 13px;
        padding: 10px 12px;
    }

    .control-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    #categoryFilter,
    .btn-add {
        width: 100%;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .subscription-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* 広告バナー（スマホ） */
    .ad-banner {
        padding: 15px;
    }
    
    .ad-banner-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .ad-text {
        flex-direction: column;
        text-align: center;
        font-size: 14px;
        gap: 10px;
    }
    
    .ad-upgrade-btn {
        width: 100%;
        justify-content: center;
    }
}
