/* ========================================
   助成金・補助金チェックサポーター
   Modern Design System
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --primary-bg: #eef2ff;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px -4px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, #eef2ff 0%, #ecfeff 100%);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.25rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gradient); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem;
}
.logo-text { font-size: 0.75rem; font-weight: 700; line-height: 1.2; }
.logo-text small { font-weight: 500; color: var(--text-secondary); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #3730a3 100%);
  color: white; padding: 8rem 1.25rem 5rem; text-align: center;
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%; opacity: 0.08;
  background: white;
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; animation: float 20s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; animation: float 25s ease-in-out infinite reverse; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 20%; animation: float 15s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 0.4rem 1.2rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out both;
}
.hero-title {
  font-size: 2.6rem; font-weight: 900; line-height: 1.35; letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}
.gradient-text {
  background: linear-gradient(90deg, #67e8f9, #a5b4fc, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; opacity: 0.8; line-height: 1.8; margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.stat-label { font-size: 0.8rem; opacity: 0.7; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: white; color: var(--primary-dark);
  border-radius: var(--radius-full); font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all var(--transition);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); color: var(--primary-dark); }

.cta-white {
  background: white; color: var(--primary-dark);
}

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

/* --- Section Common --- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; padding: 0.3rem 1rem;
  background: var(--primary-bg); color: var(--primary);
  border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 0.8rem;
}
.section-header h2 {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.section-header p { color: var(--text-secondary); font-size: 1rem; }

/* --- Search Section --- */
.search-section { padding: 5rem 0; background: var(--bg-alt); }

.search-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

/* Step Indicator */
.step-indicator {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 2.5rem;
}
.step {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  transition: color var(--transition);
}
.step span {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); font-size: 0.8rem; font-weight: 700;
  transition: all var(--transition);
}
.step.active { color: var(--primary); }
.step.active span { background: var(--primary); color: white; }
.step.done span { background: var(--success); color: white; }
.step-line { width: 60px; height: 2px; background: var(--border); margin: 0 0.5rem; }

/* Form Blocks */
.form-block { margin-bottom: 2rem; }
.form-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1rem; font-weight: 700; margin-bottom: 0.8rem;
}
.label-icon {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--gradient); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
}

/* Select */
.select-modern, .input-modern {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font);
  background: white; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.select-modern {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.select-modern:focus, .input-modern:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
}

/* Region Chips */
.region-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem;
}
.region-chip {
  padding: 0.4rem 0.9rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500;
  background: white; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.region-chip:hover { border-color: var(--primary); color: var(--primary); }
.region-chip.active {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* Industry Grid */
.industry-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}
.industry-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition);
  font-size: 0.9rem; font-weight: 500;
  background: white;
}
.industry-chip:hover { border-color: var(--primary-light); background: var(--primary-bg); }
.industry-chip input { display: none; }
.industry-chip.checked {
  border-color: var(--primary); background: var(--primary-bg); color: var(--primary);
}
.chip-icon { font-size: 1.2rem; }

/* Keyword Search */
.keyword-block { margin-bottom: 1.5rem; }
.keyword-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1rem; background: var(--bg-alt);
  border: 2px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.keyword-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,0.1); }
.input-keyword {
  flex: 1; border: none; background: transparent;
  font-size: 1rem; font-family: var(--font); color: var(--text);
  outline: none;
}
.input-keyword::placeholder { color: var(--text-muted); }

/* Filter Group (Stage + Purpose) */
.filter-group { display: flex; flex-direction: column; gap: 0.8rem; }
.filter-sublabel {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding-bottom: 0.3rem; border-bottom: 1px solid var(--border-light);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  cursor: pointer; transition: all var(--transition);
  font-size: 0.85rem; font-weight: 500; background: white;
}
.filter-chip:hover { border-color: var(--primary-light); background: var(--primary-bg); }
.filter-chip input { display: none; }
.filter-chip.checked {
  border-color: var(--primary); background: var(--primary-bg); color: var(--primary);
  font-weight: 600;
}

/* Optional label icon */
.label-icon.opt {
  font-size: 0.65rem; padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt); color: var(--text-muted);
  width: auto; height: auto;
}

/* Search Button */
.btn-search {
  width: 100%; padding: 1rem; margin-top: 0.5rem;
  background: var(--gradient); color: white; border: none;
  border-radius: var(--radius); font-size: 1.1rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font);
  box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}
.btn-search:hover { transform: translateY(-1px); box-shadow: 0 6px 25px rgba(79,70,229,0.4); }
.btn-search:active { transform: translateY(0); }

/* --- Results Section --- */
.results-section { padding: 3rem 0 5rem; }

.results-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.results-count { font-size: 1rem; color: var(--text-secondary); }
.results-count strong { color: var(--primary); font-size: 1.4rem; font-weight: 800; }

.results-controls { display: flex; align-items: center; gap: 0.8rem; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-btn {
  padding: 0.5rem 0.6rem; background: white; border: none;
  cursor: pointer; display: flex; align-items: center;
  color: var(--text-muted); transition: all var(--transition);
}
.view-btn.active { background: var(--primary-bg); color: var(--primary); }
.view-btn:not(:last-child) { border-right: 1px solid var(--border); }
.select-small {
  padding: 0.45rem 2rem 0.45rem 0.8rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.85rem; background: white;
  font-family: var(--font); color: var(--text-secondary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.6rem center;
}

/* Results List */
.results-list { display: flex; flex-direction: column; gap: 1rem; }
.results-list.grid-view {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem;
}

/* Hojokin Card */
.hojokin-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition); position: relative;
  animation: cardIn 0.3s ease-out both;
}
.hojokin-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

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

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.8rem; }
.card-top h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; flex: 1; }
.badge-pref {
  padding: 0.2rem 0.7rem; background: var(--primary-bg); color: var(--primary);
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
  white-space: nowrap;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.tag {
  padding: 0.15rem 0.5rem; font-size: 0.75rem; font-weight: 500;
  border-radius: 6px;
}
.tag-amount { background: var(--success-bg); color: #065f46; }
.tag-deadline { background: var(--warning-bg); color: #92400e; }
.tag-target { background: var(--bg-alt); color: var(--text-secondary); }

.card-summary {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.btn-detail {
  padding: 0.5rem 1.2rem; background: var(--primary); color: white;
  border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font);
}
.btn-detail:hover { background: var(--primary-dark); color: white; }
.btn-consult {
  padding: 0.5rem 1.2rem; background: white;
  border: 1.5px solid var(--success); color: var(--success);
  border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; font-family: var(--font);
}
.btn-consult:hover { background: var(--success-bg); }

/* Card Action Buttons (Favorite + Compare) */
.card-icon-btns { display: flex; gap: 0.3rem; margin-left: auto; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
  background: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.icon-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.icon-btn.favorited { color: var(--danger); border-color: var(--danger); background: #fef2f2; }
.icon-btn.compared { color: var(--accent); border-color: var(--accent); background: #ecfeff; }

/* Compare Bar */
.compare-bar {
  position: sticky; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-top: 2px solid var(--accent); padding: 0.8rem 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.compare-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.btn-compare {
  padding: 0.5rem 1.2rem; background: var(--accent); color: white;
  border: none; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; font-family: var(--font);
}
.btn-compare-clear {
  padding: 0.5rem 0.8rem; background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 0.85rem;
  font-family: var(--font);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-content {
  background: white; border-radius: var(--radius-lg);
  max-width: 900px; width: 100%; max-height: 85vh; overflow: auto;
  box-shadow: var(--shadow-xl);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  width: 36px; height: 36px; border-radius: 8px; border: none;
  background: var(--bg-alt); cursor: pointer; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.modal-body { padding: 1.5rem; overflow-x: auto; }

/* Compare Table */
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.compare-table th {
  text-align: left; padding: 0.6rem 1rem;
  background: var(--bg-alt); font-weight: 600; font-size: 0.8rem;
  color: var(--text-secondary); white-space: nowrap;
  border-bottom: 2px solid var(--border);
}
.compare-table td {
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.compare-table tr:hover td { background: var(--bg); }

/* --- FAB Favorites --- */
.fab-favorites {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient); color: white; border: none;
  box-shadow: 0 4px 20px rgba(79,70,229,0.4);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.fab-favorites:hover { transform: scale(1.1); }
.fab-badge {
  position: absolute; top: -2px; right: -2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* --- Favorites Panel --- */
.favorites-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: 380px; max-width: 90vw;
  background: white; box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border);
}
.panel-header h3 { font-size: 1rem; font-weight: 700; }
.panel-close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: var(--bg-alt); cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.panel-body { flex: 1; overflow-y: auto; padding: 1rem; }

/* Mini card in favorites panel */
.fav-card {
  padding: 0.8rem; border: 1px solid var(--border-light); border-radius: 10px;
  margin-bottom: 0.6rem; transition: background var(--transition);
}
.fav-card:hover { background: var(--bg); }
.fav-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.fav-card p { font-size: 0.8rem; color: var(--text-muted); }
.fav-remove {
  font-size: 0.75rem; color: var(--danger); background: none; border: none;
  cursor: pointer; margin-top: 0.3rem; font-family: var(--font);
}

/* --- Features Section --- */
.features-section { padding: 5rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* --- Guides Section --- */
.guides-section { padding: 5rem 0; background: var(--bg); }
.guides-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
.guide-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
  border: 1px solid var(--border-light);
  text-decoration: none; color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; align-items: center;
}
.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.guide-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.guide-card h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.8rem;
  line-height: 1.5; color: var(--text);
}
.guide-card p {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 1rem; flex: 1;
}
.guide-card-link {
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  transition: color var(--transition);
}
.guide-card:hover .guide-card-link { color: var(--accent); }

@media (max-width: 768px) {
  .guides-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* --- FAQ Section --- */
.faq-section { padding: 5rem 0; background: var(--bg-alt); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg); border-radius: var(--radius);
  margin-bottom: 0.8rem; border: 1px solid var(--border-light);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.5rem; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--bg); }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; color: var(--primary); font-weight: 300;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 1.5rem 1.2rem; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 1.25rem; text-align: center;
  background: var(--gradient); color: white;
}
.cta-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.8rem; line-height: 1.4; }
.cta-section p { opacity: 0.85; margin-bottom: 2rem; font-size: 1rem; }

/* --- Footer --- */
.footer {
  padding: 2.5rem 0; border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand strong { font-size: 0.9rem; display: block; }
.footer-brand p { font-size: 0.75rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); }
.footer-disclaimer {
  font-size: 0.8rem; color: var(--text-muted); text-align: center;
  padding-top: 1rem; border-top: 1px solid var(--border-light);
}

/* --- Corp Lookup Block --- */
.corp-lookup-block {
  background: var(--gradient-soft); border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2rem; overflow: hidden;
}
.corp-lookup-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.2rem; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; color: var(--text);
}
.corp-lookup-header:hover { background: rgba(79,70,229,0.04); }
.corp-toggle {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--text-muted); display: flex; padding: 4px;
  transition: transform var(--transition);
}
.corp-lookup-body { padding: 0 1.2rem 1.2rem; }
.corp-hint { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }

/* Corp Tabs */
.corp-tabs { display: flex; gap: 0; margin-bottom: 1rem; border-bottom: 2px solid var(--border); }
.corp-tab {
  padding: 0.6rem 1.2rem; font-size: 0.9rem; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all var(--transition);
  font-family: var(--font);
}
.corp-tab:hover { color: var(--text); }
.corp-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.corp-tab-content { display: none; }
.corp-tab-content.active { display: block; }

/* Corp Input */
.corp-input-row { display: flex; gap: 0.5rem; }
.corp-input-row .input-modern { flex: 1; }
.btn-corp-search {
  padding: 0.75rem 1.5rem; background: var(--primary); color: white;
  border: none; border-radius: var(--radius); font-weight: 600;
  font-size: 0.9rem; cursor: pointer; white-space: nowrap;
  transition: background var(--transition); font-family: var(--font);
}
.btn-corp-search:hover { background: var(--primary-dark); }

/* Corp Candidates */
.candidates-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.6rem; }
.candidate-item {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: baseline;
  padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 0.4rem; cursor: pointer; background: white;
  transition: all var(--transition);
}
.candidate-item:hover { border-color: var(--primary); background: var(--primary-bg); }
.candidate-item strong { font-size: 0.9rem; }
.candidate-item span { font-size: 0.8rem; color: var(--text-secondary); }
.candidate-num { font-family: monospace; font-size: 0.75rem; color: var(--text-muted); }

/* Corp Result */
.corp-result-card {
  padding: 1rem; background: white; border-radius: var(--radius);
  border: 2px solid var(--success); margin-top: 0.8rem;
}
.corp-result-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.corp-result-meta {
  display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.8rem;
}
.btn-corp-apply {
  padding: 0.6rem 1.5rem; background: var(--primary); color: white;
  border: none; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.btn-corp-apply:hover { background: var(--primary-dark); }

/* Corp Error & Loading */
.corp-error {
  padding: 0.7rem 1rem; background: #fef2f2; color: #dc2626;
  border-radius: 8px; font-size: 0.85rem; margin-top: 0.8rem;
  border: 1px solid #fecaca;
}
.corp-loading {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem; color: var(--text-muted); font-size: 0.9rem;
}
.spinner {
  width: 20px; height: 20px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Match Reasons --- */
.match-reasons {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-bottom: 0.8rem; padding: 0.6rem 0.8rem;
  background: var(--success-bg); border-radius: 8px;
  border: 1px solid #bbf7d0;
}
.match-label {
  font-size: 0.78rem; font-weight: 700; color: #065f46;
  white-space: nowrap;
}
.match-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; background: white;
  border: 1px solid #bbf7d0; color: #065f46;
}
.match-badge.match-region, .match-badge.match-pref { border-color: #93c5fd; color: #1e40af; background: #eff6ff; }
.match-badge.match-industry { border-color: #c4b5fd; color: #5b21b6; background: #f5f3ff; }
.match-badge.match-stage { border-color: #fbbf24; color: #92400e; background: #fffbeb; }
.match-badge.match-purpose { border-color: #67e8f9; color: #155e75; background: #ecfeff; }
.match-badge.match-keyword { border-color: #a5b4fc; color: #3730a3; background: #eef2ff; }

/* --- Advice Panel --- */
.card-advice-panel {
  margin-bottom: 1rem; border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.advice-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600;
  color: var(--primary); cursor: pointer;
  background: var(--primary-bg); list-style: none;
  transition: background var(--transition);
}
.advice-toggle:hover { background: #ddd6fe; }
.advice-toggle::-webkit-details-marker { display: none; }
.card-advice-panel[open] .advice-toggle { border-bottom: 1px solid var(--border-light); }

.advice-body { padding: 1rem; background: var(--bg); }
.advice-item {
  padding: 0.8rem; margin-bottom: 0.6rem;
  background: white; border-radius: 8px;
  border: 1px solid var(--border-light);
}
.advice-item:last-child { margin-bottom: 0; }
.advice-item-header {
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.4rem; font-size: 0.88rem;
}
.advice-icon { font-size: 1rem; }
.advice-text {
  font-size: 0.83rem; color: var(--text-secondary); line-height: 1.7;
}
.advice-steps {
  margin: 0.4rem 0 0 1.2rem; padding: 0;
  font-size: 0.83rem; color: var(--text-secondary); line-height: 1.8;
}
.advice-steps li { margin-bottom: 0.2rem; }

/* --- Empty & Loading --- */
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 0.8rem; opacity: 0.5; }
.empty-state p { font-size: 0.95rem; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 1rem; gap: 0.8rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .hero { padding: 7rem 1rem 4rem; min-height: 80vh; }
  .hero-title { font-size: 1.8rem; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.5rem; }
  .search-card { padding: 1.5rem; }
  .industry-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .results-list.grid-view { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .cta-section h2 { font-size: 1.4rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .hero-sub { font-size: 0.95rem; }
  .features-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.4rem; }
  .card-actions { flex-direction: column; }
  .btn-detail, .btn-consult { width: 100%; text-align: center; justify-content: center; }
}
