/* ===================================================
   MYSTO — 共通スタイルシート (css/style.css)
   =================================================== */

/* ===== ヒーローセクション ===== */
.hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 45%, #1D4ED8 100%);
    color: #fff;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(14,165,233,0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.hero-badge i { color: #F59E0B; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero h1 span {
    background: linear-gradient(90deg, #38BDF8, #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}
.hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-label {
    font-size: 0.82rem;
    opacity: 0.65;
    margin-top: 4px;
}

/* ===== 検索ボックス ===== */
.search-section {
    background: var(--bg-white, #fff);
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: 28px 0;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}
.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
}
.search-input-wrap {
    flex: 1;
    position: relative;
}
.search-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    font-size: 1rem;
}
.search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    background: var(--bg-light, #f8fafc);
    transition: all 0.2s;
}
.search-input:focus {
    border-color: var(--primary, #2563eb);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.search-select {
    padding: 14px 40px 14px 16px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-size: 0.92rem;
    background: var(--bg-light, #f8fafc);
    color: var(--text-primary, #0f172a);
    outline: none;
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.2s;
}
.search-select:focus {
    border-color: var(--primary, #2563eb);
    background-color: #fff;
}

/* ===== カテゴリーセクション ===== */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.category-card:hover {
    background: var(--primary-light, #eff6ff);
    border-color: var(--primary, #2563eb);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.1));
}
.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.category-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}
.category-count {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
}

/* ===== 注目求人セクション ===== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ===== 特徴セクション ===== */
.feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
    line-height: 1.7;
}

/* ===== CTA バナー ===== */
.cta-banner {
    background: linear-gradient(135deg, #1E3A8A, #1D4ED8 60%, #0EA5E9);
    color: #fff;
    border-radius: var(--radius-lg, 16px);
    padding: 60px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.cta-banner-text h2 { font-size: 1.8rem; margin-bottom: 10px; }
.cta-banner-text p { opacity: 0.8; font-size: 1rem; }
.cta-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ===== 企業CTA ===== */
.companies-banner {
    background: #F8FAFC;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 52px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.companies-banner-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

/* ===== 新着ニュース ===== */
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover .news-title { color: var(--primary, #2563eb); }
.news-date {
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
    margin-top: 2px;
}
.news-title {
    font-size: 0.92rem;
    line-height: 1.5;
    transition: color 0.2s;
}

@media (max-width: 768px) {
    .hero { padding: 64px 0 72px; }
    .hero-stats { gap: 24px; }
    .jobs-grid { grid-template-columns: 1fr; }
    .cta-banner { flex-direction: column; text-align: center; padding: 36px 24px; }
    .cta-banner-actions { justify-content: center; }
    .companies-banner { flex-direction: column; text-align: center; }
    .search-box { flex-direction: column; }
    .search-select { width: 100%; }
    .category-grid { grid-template-columns: repeat(2, 1fr) !important; }
    #newsSection { grid-template-columns: 1fr !important; }
}


/* ---------- CSS Variables ---------- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --success: #10B981;
  --accent: #F59E0B;
  --danger: #EF4444;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --border: #E2E8F0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --transition: 0.2s ease;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 56px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 560px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

/* ---------- Grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: #F0F4FF;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

.w-full {
  width: 100%;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.badge-blue {
  background: #EFF6FF;
  color: #2563EB;
}
.badge-green {
  background: #ECFDF5;
  color: #059669;
}
.badge-pink {
  background: #FDF2F8;
  color: #DB2777;
}
.badge-purple {
  background: #F5F3FF;
  color: #7C3AED;
}
.badge-red {
  background: #FEF2F2;
  color: #EF4444;
}
.badge-amber {
  background: #FFFBEB;
  color: #D97706;
}
.badge-featured {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-menu a:hover {
  background: var(--bg-light);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ---------- Job Card ---------- */
.job-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.job-card-info {
  flex: 1;
  min-width: 0;
}

.job-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2px;
}

.job-card-company {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.job-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.job-salary {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

.job-apply-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Loading / Empty ---------- */
.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 60px 0;
  grid-column: 1 / -1;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #0F172A;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 64px;
}

.footer .logo {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 6px 0;
  opacity: 0.65;
  transition: opacity var(--transition);
}

.footer-col a:hover {
  opacity: 1;
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav,
  .header-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-sm {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}