*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0f172a;
  --color-accent: #3b82f6;
  --color-accent-light: #eff6ff;
  --color-text: #0f172a;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
}

body {
  font-family: "Inter", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  padding: 20px 0;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.04em;
}

.logo span {
  font-weight: 600;
  color: var(--color-accent);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-text);
}

/* Hero */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  color: #fff;
}

.hero h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.0625rem;
  opacity: 0.75;
  line-height: 1.9;
  font-weight: 400;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  max-width: 440px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  transition: background 0.2s;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.newsletter-form button:hover {
  background: #2563eb;
}

.newsletter-note {
  margin-top: 12px;
  font-size: 0.75rem !important;
  opacity: 0.45 !important;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

/* Tags */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  font-family: "Inter", sans-serif;
  padding: 7px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-bg);
  color: var(--color-text-light);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.tag.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-date {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-weight: 400;
}

.card-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.card-body {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.company-table th {
  width: 110px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.company-table td {
  color: var(--color-text-light);
}

.company-table a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.company-table a:hover {
  text-decoration: underline;
}

.footer-link {
  color: var(--color-text-light);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-box {
  text-align: center;
  padding: 48px;
  background: var(--color-bg);
  border-radius: 16px;
  border: 1.5px solid var(--color-border);
}

.contact-email {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.7;
}

/* Author */
.author-box {
  padding: 32px;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
}

.author-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.author-title {
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* Article author (inline) */
.article-author {
  margin-top: 48px;
  padding: 24px;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
}

.article-author .author-name {
  font-size: 1rem;
}

.article-author .author-bio {
  font-size: 0.8125rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Article page */
.article-header {
  padding: 64px 0 48px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.article-header .card-meta {
  margin-bottom: 16px;
}

.article-header h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.article-body {
  padding: 48px 0 72px;
}

.article-body .container {
  max-width: 720px;
}

.article-body h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 32px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color-text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 24px;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color-text);
}

.article-body li {
  margin-bottom: 4px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.875rem;
}

.article-body th,
.article-body td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.article-body th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-primary);
}

.back-to-top {
  display: inline-block;
  margin-top: 48px;
  padding: 12px 28px;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.back-to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Pinned cards */
.pinned-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.card.pinned {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.pinned-icon {
  font-size: 0.875rem;
}

/* Job listing cards */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.job-item {
  padding: 24px 28px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.job-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.job-item-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.job-company {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.job-position {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.job-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
}

.job-tag--salary {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.job-tag--req {
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-weight: 500;
}

.job-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.job-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.job-section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.job-section-content {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.7;
}

.job-section-content ul {
  margin: 0;
  padding-left: 1.2em;
}

.job-section-content li {
  margin-bottom: 2px;
}

.job-comment {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.job-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.job-link:hover {
  opacity: 0.7;
}

.job-link::after {
  content: " \2197";
}

/* Card link */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .pinned-cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}
