@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

/* ===== リセット & 変数 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #0d9f6f;
  --primary-dark:   #0a7d58;
  --primary-light:  #e8f7f2;
  --secondary:      #0a66c2;
  --secondary-light:#e8f1fb;
  --teal:           #0891b2;
  --dark:           #0d1f2d;
  --mid:            #2d4a5e;
  --gray:           #5f6d7a;
  --light-gray:     #f4f7f9;
  --border:         #e2e8f0;
  --white:          #ffffff;
  --shadow:         0 2px 16px rgba(13,31,45,0.08);
  --shadow-lg:      0 8px 40px rgba(13,31,45,0.14);
  --radius:         14px;
  --radius-sm:      8px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', 'Inter', sans-serif; color: var(--dark); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ===== ナビゲーション ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 36px; height: 66px; }
.logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.75rem; font-weight: 700;
  color: var(--dark); text-decoration: none;
  letter-spacing: -0.04em; flex-shrink: 0;
}
.logo em { font-style: normal; color: var(--primary); }
.logo-white { color: rgba(255,255,255,0.92); }
.logo-white em { color: #6ee7c7; }

/* auth ページのロゴ */
.auth-nav-logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--dark); text-decoration: none; letter-spacing: -0.04em;
}
.auth-nav-logo em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a { color: var(--gray); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.2s; }

/* ===== ボタン ===== */
.btn-primary {
  display: inline-block; background: var(--primary); color: var(--white);
  border: 2px solid var(--primary); padding: 9px 20px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.88rem;
  text-decoration: none; cursor: pointer; transition: all 0.18s; line-height: 1;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,159,111,0.3); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--primary);
  border: 2px solid var(--primary); padding: 9px 20px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.88rem;
  text-decoration: none; cursor: pointer; transition: all 0.18s; line-height: 1;
}
.btn-outline:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-lg { padding: 14px 30px; font-size: 0.96rem; border-radius: var(--radius); }
.btn-sm {
  background: var(--primary-light); color: var(--primary);
  border: none; padding: 5px 12px; border-radius: 6px;
  font-size: 0.78rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.btn-sm:hover { background: #c9eee4; }
.btn-white {
  display: inline-block; background: var(--white); color: var(--primary);
  border: 2px solid var(--white); padding: 14px 30px;
  border-radius: var(--radius); font-weight: 700; font-size: 0.96rem;
  text-decoration: none; transition: all 0.18s;
}
.btn-white:hover { background: #f0fdf9; transform: translateY(-1px); }
.btn-outline-white {
  display: inline-block; background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.7); padding: 14px 30px;
  border-radius: var(--radius); font-weight: 700; font-size: 0.96rem;
  text-decoration: none; transition: all 0.18s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(135deg, #08243a 0%, #0b3d56 45%, #0a6644 100%);
  padding: 88px 0 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 45%, rgba(13,159,111,0.2) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; padding-bottom: 88px; position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-block; border: 1px solid rgba(110,231,199,0.35);
  background: rgba(110,231,199,0.08); color: #a7f3d0;
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 22px;
}
.hero h1 {
  font-size: 3rem; font-weight: 900; color: var(--white);
  line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px;
}
.hero-sub { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.75; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat-num { display: block; font-size: 1.9rem; font-weight: 900; color: #6ee7c7; letter-spacing: -1px; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 2px; }
.stat-divider { width: 1px; height: 38px; background: rgba(255,255,255,0.18); }

/* ヒーロービジュアル */
.hero-visual { position: relative; height: 370px; }
.hero-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px; position: absolute; }
.card-main { width: 295px; top: 16px; right: 0; z-index: 3; }
.card-sub { width: 196px; }
.card-left { bottom: 44px; left: 0; z-index: 2; }
.card-right { bottom: 8px; right: 16px; z-index: 2; }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: 0.85rem; flex-shrink: 0;
}
.avatar-a { background: linear-gradient(135deg, #0d9f6f 0%, #0a66c2 100%); }
.avatar-b { background: linear-gradient(135deg, #0a66c2 0%, #0891b2 100%); }
.avatar-c { background: linear-gradient(135deg, #0891b2 0%, #0d9f6f 100%); }
.avatar-d { background: linear-gradient(135deg, #0a7d58 0%, #0a66c2 100%); }
.card-meta { flex: 1; }
.card-name { font-size: 0.86rem; font-weight: 700; color: var(--dark); }
.card-school { font-size: 0.73rem; color: var(--gray); margin-top: 1px; }
.badge-verified {
  background: #fef3c7; color: #b45309;
  padding: 3px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.skill-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { background: var(--primary-light); color: var(--primary); padding: 3px 9px; border-radius: 999px; font-size: 0.73rem; font-weight: 600; }
.card-desc { font-size: 0.79rem; color: var(--gray); line-height: 1.55; margin-bottom: 10px; }
.card-footer-row { border-top: 1px solid var(--border); padding-top: 9px; }
.match-rate { font-size: 0.79rem; font-weight: 700; color: var(--primary); }
.sub-label { font-size: 0.72rem; color: var(--gray); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.sub-title { font-size: 0.86rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.sub-detail { font-size: 0.74rem; color: var(--gray); }
.sub-positive { color: var(--primary); font-weight: 600; }
.hero-wave { line-height: 0; margin-top: -1px; }
.hero-wave svg { display: block; width: 100%; }

/* ===== 信頼バー ===== */
.trust-bar { background: #f8fffe; padding: 26px 0; border-bottom: 1px solid var(--border); }
.trust-label { text-align: center; font-size: 0.76rem; color: var(--gray); margin-bottom: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-item { font-size: 0.88rem; color: var(--mid); font-weight: 600; }
.trust-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border); flex-shrink: 0; }

/* ===== セクション共通 ===== */
section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 4px 13px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px;
}
.section-header h2 { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 12px; color: var(--dark); }
.section-header p { font-size: 0.96rem; color: var(--gray); }

/* ===== 使い方 ===== */
.how-it-works { background: var(--white); }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.step { flex: 1; max-width: 300px; padding: 36px 28px; text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
}
.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.step p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; }
.step-connector {
  flex-shrink: 0; width: 48px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--teal));
  margin-top: 62px; border-radius: 2px;
  position: relative;
}
.step-connector::after {
  content: ''; position: absolute; right: -5px; top: -4px;
  width: 10px; height: 10px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal);
  transform: rotate(45deg);
}

/* ===== 2カラム ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.col-text h2 { font-size: 2.1rem; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 28px; margin-top: 12px; line-height: 1.2; }
.feature-list { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 22px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feat-marker {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  flex-shrink: 0; margin-top: 7px;
}
.feature-list strong { display: block; font-size: 0.96rem; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.feature-list p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; }

/* ===== 学生向け（モックUI） ===== */
.for-students { background: #f8fffe; }
.dashboard-mock {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); overflow: hidden;
}
.mock-header {
  display: flex; align-items: center; gap: 6px;
  background: #f1f5f9; padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red { background: #fc5f5a; }
.mock-dot.yellow { background: #fdbc40; }
.mock-dot.green { background: #34c759; }
.mock-title { font-size: 0.78rem; font-weight: 600; color: var(--gray); margin-left: 8px; }
.mock-body { padding: 20px; }
.mock-profile-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mock-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.mock-school { font-size: 0.75rem; color: var(--gray); margin-top: 1px; }
.badge-school-sm {
  margin-left: auto; background: var(--secondary-light); color: var(--secondary);
  padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.mock-divider { height: 1px; background: var(--border); margin: 14px 0; }
.mock-section-label { font-size: 0.74rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.mock-test-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mock-test-name { font-size: 0.78rem; color: var(--dark); width: 96px; flex-shrink: 0; }
.mock-bar-wrap { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.mock-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--teal)); border-radius: 3px; }
.mock-test-score { font-size: 0.78rem; font-weight: 700; color: var(--primary); width: 38px; text-align: right; flex-shrink: 0; }
.mock-token-row { display: flex; align-items: center; gap: 8px; }
.mock-token-num { font-size: 2rem; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.mock-token-label { font-size: 0.82rem; color: var(--gray); }
.mock-token-badge {
  margin-left: auto; background: #fef3c7; color: #b45309;
  padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
}

/* ===== 企業向け（応募者モック） ===== */
.for-companies { background: var(--white); }
.applicant-mock {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); overflow: hidden;
}
.applicant-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.applicant-row:last-child { border-bottom: none; }
.applicant-row:hover { background: #fafcfb; }
.applicant-info { flex: 1; }
.applicant-name { font-size: 0.86rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.applicant-school { font-size: 0.75rem; color: var(--gray); }
.badge-priority { background: #fef3c7; color: #b45309; padding: 2px 7px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.badge-school-tag { background: var(--secondary-light); color: var(--secondary); padding: 2px 7px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }

/* ===== 大学向け ===== */
.for-schools { background: var(--light-gray); }
.school-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.school-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.school-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.school-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.school-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.school-card p { font-size: 0.87rem; color: var(--gray); line-height: 1.65; }
.school-cta { text-align: center; }

/* ===== トークンセクション ===== */
.token-section { background: linear-gradient(135deg, #08243a 0%, #0a6644 100%); }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.7); }
.tag-light { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.2); }
.token-flow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.token-step {
  flex: 1; min-width: 210px; max-width: 260px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
}
.token-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(110,231,199,0.15); border: 1px solid rgba(110,231,199,0.3);
  color: #6ee7c7; font-size: 1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.token-step h4 { font-size: 0.96rem; font-weight: 700; color: #a7f3d0; margin-bottom: 8px; }
.token-step p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.6; }
.token-arrow { flex-shrink: 0; }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, #0d9f6f 0%, #0a66c2 100%); text-align: center; }
.cta-inner h2 { font-size: 2.5rem; font-weight: 900; color: var(--white); margin-bottom: 14px; letter-spacing: -0.5px; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== フッター ===== */
.footer { background: var(--dark); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 64px; padding-bottom: 52px; }
.footer-brand .logo { display: block; margin-bottom: 10px; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.86rem; }
.footer-links { display: flex; gap: 52px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-heading { font-size: 0.76rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.18s; }
.footer-col a:hover { color: #6ee7c7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.25); font-size: 0.8rem; }

/* ===== レスポンシブ ===== */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.3rem; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; direction: ltr; }
  .school-cards { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-connector { width: 2px; height: 32px; margin-top: 0; }
  .step-connector::after { top: auto; bottom: -5px; right: -4px; transform: rotate(135deg); }
  .token-flow { flex-direction: column; align-items: center; }
  .token-arrow { transform: rotate(90deg); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  .section-header h2 { font-size: 1.75rem; }
  .cta-inner h2 { font-size: 1.9rem; }
  .hero-btns, .cta-btns { flex-direction: column; align-items: flex-start; }
  .cta-btns { align-items: center; }
  .school-cards { grid-template-columns: 1fr; }
}
