* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif; color: #333; line-height: 1.6; }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f5f5f3; }
.auth-card { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.auth-logo { font-size: 28px; font-weight: 700; color: #2F6F4F; text-align: center; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: #888; text-align: center; margin-bottom: 32px; }
.auth-subtitle-large { font-size: 16px; text-align: center; margin-bottom: 32px; line-height: 1.8; }
.auth-form { display: grid; gap: 16px; }
.auth-link { text-align: center; margin-top: 24px; font-size: 14px; }
.auth-link a { color: #2F6F4F; font-weight: 600; text-decoration: none; }

.form-group { display: grid; gap: 4px; }
.form-group label { font-size: 14px; font-weight: 600; color: #555; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; }
.form-group textarea { min-height: 100px; resize: vertical; }
.hint { font-size: 12px; color: #aaa; }
.error-msg { color: #c33; font-size: 14px; text-align: center; margin-bottom: 16px; padding: 8px; background: #fef2f2; border-radius: 8px; }

.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.industry-card { padding: 16px 12px; border: 2px solid #e5e5e5; border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.2s; display: block; }
.industry-card.selected, .industry-card:has(input:checked) { border-color: #2F6F4F; background: #f0f7f4; }
.industry-card input[type="radio"] { display: none; }
.industry-emoji { display: block; font-size: 28px; margin-bottom: 4px; }
.industry-label { font-size: 14px; font-weight: 600; }

.btn-primary { display: block; width: 100%; padding: 14px; background: #2F6F4F; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.btn-primary:hover { background: #256341; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { display: inline-block; padding: 10px 20px; background: #fff; color: #2F6F4F; border: 2px solid #2F6F4F; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-secondary:hover { background: #f0f7f4; }
.btn-danger { display: inline-block; padding: 10px 20px; background: #fff; color: #c33; border: 2px solid #c33; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: #fef2f2; }
.btn-back { display: block; text-align: center; color: #999; font-size: 14px; text-decoration: none; margin-top: 8px; }

.dashboard { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #1a1a2e; color: #fff; padding: 24px 0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; }
.sidebar-logo { font-size: 20px; font-weight: 700; padding: 0 24px; margin-bottom: 32px; color: #fff; text-decoration: none; display: block; }
.sidebar-nav { flex: 1; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: all 0.2s; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.sidebar-nav a.active { color: #fff; background: rgba(255,255,255,0.15); border-right: 3px solid #4FD1A5; }
.sidebar-nav .nav-icon { width: 20px; text-align: center; }
.sidebar-bottom { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; }

.main-content { margin-left: 240px; flex: 1; padding: 32px; background: #f8f8f6; min-height: 100vh; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 24px; font-weight: 700; color: #333; }
.page-header p { font-size: 14px; color: #888; margin-top: 4px; }

.card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 20px; }
.card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: #555; }

.link-list { display: grid; gap: 12px; }
.link-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: #f8f8f6; border-radius: 8px; }
.link-item-name { font-weight: 600; font-size: 14px; }
.link-item-url { font-size: 12px; color: #888; margin-top: 2px; word-break: break-all; }
.btn-copy { padding: 6px 12px; background: #2F6F4F; color: #fff; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.btn-copy:hover { background: #256341; }

.contact-table { width: 100%; border-collapse: collapse; }
.contact-table th { text-align: left; font-size: 13px; color: #888; padding: 8px 12px; border-bottom: 1px solid #eee; }
.contact-table td { padding: 12px; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.contact-table tr:hover { background: #f8f8f6; cursor: pointer; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-lead { background: #E8F4FA; color: #2B7CB8; }
.badge-customer { background: #E8F5EB; color: #2F6F4F; }
.badge-churned { background: #f0f0f0; color: #888; }
.badge-source { background: #FFF8E8; color: #8B6B2B; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.stat-number { font-size: 32px; font-weight: 700; color: #2F6F4F; }
.stat-label { font-size: 13px; color: #888; margin-top: 4px; }

.post-list { display: grid; gap: 8px; }
.post-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #f8f8f6; border-radius: 8px; }
.post-day { font-size: 13px; font-weight: 700; color: #2F6F4F; min-width: 30px; }
.post-theme { font-size: 14px; flex: 1; }
.post-done { width: 20px; height: 20px; border-radius: 4px; border: 2px solid #ddd; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.post-done.checked { background: #2F6F4F; border-color: #2F6F4F; color: #fff; }

.tag { display: inline-block; padding: 2px 8px; background: #e8e8e8; border-radius: 12px; font-size: 11px; margin: 2px; }

.bar-chart { display: grid; gap: 8px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: 13px; min-width: 80px; color: #555; }
.bar-track { flex: 1; height: 24px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #2F6F4F; border-radius: 4px; transition: width 0.3s; }
.bar-value { font-size: 13px; min-width: 40px; text-align: right; color: #888; }

.mobile-header { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 768px) {
    .mobile-header { display: flex; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; right: 0; height: 56px; background: #1a1a2e; color: #fff; padding: 0 16px; z-index: 200; }
    .mobile-header-logo { font-size: 18px; font-weight: 700; color: #fff; text-decoration: none; }
    .hamburger-btn { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 8px; line-height: 1; }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
    .sidebar-overlay.open { display: block; }
    .main-content { margin-left: 0; padding: 16px; padding-top: 72px; }
    .stats-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: 1fr; }
}
