:root {
  --red: #BF0000;
  --red-dark: #8B0000;
  --text: #333;
  --muted: #666;
  --bg: #F5F5F5;
  --white: #FFF;
  --border: #E0E0E0;
  --shadow: 0 2px 8px rgba(0,0,0,.1);
  --radius: 8px;
}

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

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

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

/* Header */
header {
  background: var(--red);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: 20px; }

nav a { color: white; text-decoration: none; font-size: .9rem; }

.btn-apply {
  background: white;
  color: var(--red) !important;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: .85rem !important;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--red), #E00);
  color: white;
  padding: 48px 32px;
  border-radius: var(--radius);
  text-align: center;
  margin: 24px 0;
}

.hero h1 { font-size: 1.8rem; margin-bottom: 8px; }
.hero p { opacity: .9; margin-bottom: 24px; }

.btn-hero {
  display: inline-block;
  background: white;
  color: var(--red);
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 24px;
  text-decoration: none;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  display: block;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.card h2 { font-size: 1rem; margin-bottom: 8px; line-height: 1.5; }

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

.card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.6; }

time { font-size: .75rem; color: var(--muted); }

.tag {
  font-size: .7rem;
  background: #FFF0F0;
  color: var(--red);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #FFD0D0;
}

/* Article page layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  margin: 24px auto;
  align-items: start;
}

@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.3rem; }
  nav a:not(.btn-apply) { display: none; }
  article { padding: 20px; }
}

article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.article-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.article-header .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.article-header h1 { font-size: 1.6rem; line-height: 1.4; }

.article-body h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
  color: var(--red-dark);
}

.article-body p { margin-bottom: 16px; }

.article-body ul,
.article-body ol { margin: 12px 0 16px 24px; }

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

.article-body strong { color: var(--red-dark); }

/* Sidebar */
aside { position: sticky; top: 76px; }

.cta-box {
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.cta-lead {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--red-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.cta-sub { font-size: .95rem; margin-bottom: 12px; }

.btn-cta {
  display: block;
  background: var(--red);
  color: white;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 8px;
  transition: background .2s;
}

.btn-cta:hover { background: var(--red-dark); }

.cta-note { font-size: .7rem; color: var(--muted); }

/* Footer */
footer {
  background: #333;
  color: #ccc;
  padding: 24px 0;
  text-align: center;
  font-size: .85rem;
  margin-top: 48px;
}

footer a { color: #aaa; }
