@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/
/* ========================================
   SEO ダッシュボード スタイル
======================================== */
.seo-dash-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; max-width: 1200px; }

/* 認証画面 */
.seo-auth-screen { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.seo-auth-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 48px; text-align: center; max-width: 420px; width: 100%; }
.seo-auth-icon { margin-bottom: 20px; }
.seo-auth-card h2 { font-size: 22px; font-weight: 600; color: #111; margin: 0 0 12px; }
.seo-auth-card p { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0 0 28px; }
.seo-btn-google { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dadce0; border-radius: 8px; padding: 12px 24px; font-size: 14px; font-weight: 500; color: #3c4043; text-decoration: none; transition: background 0.15s, box-shadow 0.15s; }
.seo-btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,.1); color: #3c4043; }

/* ヘッダー */
.seo-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.seo-header h1 { font-size: 20px; font-weight: 600; color: #111; margin: 0; }
.seo-period { font-size: 12px; color: #6b7280; margin-left: 12px; }
.seo-header-right { display: flex; align-items: center; gap: 10px; }
.seo-site-select { font-size: 13px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #374151; }
.seo-site-badge { font-size: 13px; color: #374151; background: #f3f4f6; padding: 6px 12px; border-radius: 6px; }
.seo-btn-logout { font-size: 12px; color: #6b7280; text-decoration: none; padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 6px; }
.seo-btn-logout:hover { background: #f9fafb; color: #374151; }

/* メトリクスカード */
.seo-dash-wrap .seo-metrics { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; margin-bottom: 20px !important; }
.seo-dash-wrap .seo-metric-card { background: #f9fafb !important; border-radius: 10px !important; padding: 16px !important; min-width: 0 !important; float: none !important; width: auto !important; }
.seo-dash-wrap .seo-metric-label { font-size: 11px !important; color: #6b7280 !important; margin-bottom: 6px !important; display: block !important; }
.seo-dash-wrap .seo-metric-value { font-size: 24px !important; font-weight: 600 !important; color: #111 !important; display: block !important; }
.seo-dash-wrap .seo-metric-sub { font-size: 11px !important; color: #9ca3af !important; margin-top: 4px !important; display: block !important; }

/* カード */
.seo-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.seo-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.seo-card-title { font-size: 14px; font-weight: 600; color: #111; }
.seo-chart-wrap { position: relative; height: 200px; width: 100%; }
.seo-search-input { font-size: 13px; padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 6px; width: 220px; }

/* タブ */
.seo-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid #e5e7eb; padding-bottom: 0; }
.seo-tab { padding: 8px 16px; font-size: 13px; cursor: pointer; border: none; background: none; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.seo-tab.active { color: #4285f4; border-bottom-color: #4285f4; }

/* テーブル */
/* テーブル */
.seo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.seo-table th { text-align: left; font-size: 11px; font-weight: 600; color: #6b7280; padding: 10px 12px; border-bottom: 2px solid #e5e7eb; white-space: nowrap; background: #f9fafb; }
.seo-table th.sortable { cursor: pointer; user-select: none; }
.seo-table th.sortable:hover { color: #374151; }
.seo-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.seo-table tr:last-child td { border-bottom: none; }
.seo-table tbody tr:nth-child(odd) { background: #ffffff; }
.seo-table tbody tr:nth-child(even) { background: #f9fafb; }
.seo-table tbody tr:hover td { background: #eff6ff !important; }
.seo-num { text-align: right; font-variant-numeric: tabular-nums; color: #374151; padding-right: 16px !important; }
.seo-kw { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 12px !important; }

/* 順位バッジ */
.seo-rank { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rank-top3  { background: #fef9c3; color: #854d0e; }
.rank-top10 { background: #dcfce7; color: #166534; }
.rank-mid   { background: #dbeafe; color: #1e40af; }
.rank-low   { background: #f3f4f6; color: #6b7280; }

/* 空状態 */
.seo-empty { text-align: center; padding: 48px; color: #6b7280; font-size: 14px; }

/* レスポンシブ */
@media (max-width: 768px) {
    .seo-metrics { grid-template-columns: repeat(2, 1fr); }
    .seo-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .seo-metrics { grid-template-columns: 1fr 1fr; }
}