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

/* ========== Base ========== */
html, body {
  background: #f5f7fb;
  color: #111827;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

/* ========== Links ========== */
a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  opacity: 0.85;
}

/* ========== Layout ========== */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ========== Header ========== */
header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

/* ロゴ */
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: #111827;
  white-space: nowrap;
}

/* ナビゲーション */
.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* ===== スマホ対応 ===== */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 0 1rem;
  }

  .nav {
    gap: 1rem;
  }
}

/* ========== Footer ========== */
footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ========== Hero ========== */
.hero {
  padding: 3.5rem 0 2.5rem;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.hero-sub {
  font-size: 1rem;
  color: #6b7280;
  max-width: 600px;
}

/* ========== Section title ========== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 60px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

/* ========== Grid ========== */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ========== Cards ========== */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #111827;
}
.card p {
  font-size: 0.92rem;
  color: #4b5563;
}

/* ========== Button ========== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(37, 99, 235, 0.45);
}

/* ========== News ========== */
.news-container {
  width: min(900px, 94%);
  margin: 0 auto;
}
.news-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.thread-line {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.thread-info {
  font-size: 0.8rem;
  color: #6b7280;
  font-family: Menlo, Consolas, monospace;
}
.thread-res {
  padding-left: 1rem;
  font-family: Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

/* ========== Simple Animation ========== */
.fade-up {
  animation: fadeUp 0.5s ease-out both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
