body {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  background: #f5f7ff;
  color: #333;
}

.header {
  background: #242AD3;
  color: white;
  padding: 15px 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 1200px;
  margin: auto;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-title {
  margin-left: auto;
  font-size: 18px;
}

.logo {
  width: 90px;
  margin-right: 15px;
  background-color: white;
}

.title h1 {
  font-size: 32px;
  font-weight: bold;
  margin-right: auto;
  margin-left: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: calc(100% - 20px);
  margin: 16px auto 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-nav a {
  flex: 1 1 20%;
  min-width: 120px;
  text-align: center;
  padding: 15px 10px;
  text-decoration: none;
  color: #242AD3;
  border-right: 1px solid #eee;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: #242AD3;
  color: white;
}

.main-grid {
  max-width: 1200px;
  width: calc(100% - 20px);
  margin: 10px auto 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1200px;
  width: calc(100% - 20px);
  margin: 30px auto;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1200px;
  width: 100%;
  margin: 20px auto 30px;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #242AD3;
  border-left: 5px solid #242AD3;
  padding-left: 8px;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card li {
  margin-bottom: 8px;
  line-height: 1.5;
}

a {
  color: #242AD3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.new {
  background: #ff3b3b;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 5px;
}

.date {
  font-size: 12px;
  color: #777;
  margin-left: 5px;
}

.muted { color: #777; }

.article-text {
  white-space: pre-wrap;
  line-height: 1.7;
  margin-bottom: 12px;
}

.article-html {
  line-height: 1.7;
  margin-bottom: 12px;
  overflow-x: auto;
}

.article-html img,
.article-images img,
.image-normal {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
}

.article-html table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

.article-html th,
.article-html td {
  border: 1px solid #ccc;
  padding: 6px;
}

.archive-list a {
  display: inline;
}

.crumb {
  max-width: 1200px;
  width: calc(100% - 20px);
  margin: 16px auto 0;
  font-size: 0.9rem;
  color: #667;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .logo { width: 45px; }
  .title h1 { font-size: 28px; text-align: center; }
  .sub-title {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    width: 100%;
    font-size: 16px;
    text-align: center;
    align-items: center;
  }
  .sub-title p { margin: 0; line-height: 1.4; }
  .main-nav a { flex: 1 1 40%; }
  .grid { grid-template-columns: 1fr; }
}
