body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background: #fafafa;
}

#blog-title {
  background: #2c6e8a;
  padding: 20px 0;
}

#blog-title a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
}

#blog-description {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-top: 5px;
}

.navi {
  background: #1a4f66;
  padding: 0;
  margin: 0;
}

.navi ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navi ul li {
  margin: 0;
}

.navi ul li a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.navi ul li a:hover {
  background: #2c6e8a;
  color: #fff;
}

#content-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;
}

#wrapper {
  flex: 1;
  min-width: 0;
}

#box2 {
  width: 260px;
  flex-shrink: 0;
  font-size: 14px;
}

.entry {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  padding: 20px 24px;
  transition: box-shadow 0.2s;
}

.entry:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.entry-title {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 10px;
}

.entry-title a {
  color: #2c6e8a;
  text-decoration: none;
}

.entry-title a:hover {
  color: #1a4f66;
  text-decoration: underline;
}

.entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}

.entry-content h2 {
  font-size: 20px;
  font-weight: bold;
  border-left: 4px solid #2c6e8a;
  padding-left: 12px;
  margin: 32px 0 16px;
  color: #222;
}

.entry-content h3 {
  font-size: 17px;
  font-weight: bold;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
  margin: 24px 0 12px;
  color: #333;
}

.entry-content p {
  margin: 0 0 16px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 16px auto;
}

.related-articles {
  background: #f0f7fb;
  border: 1px solid #bde0f0;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 32px 0 16px;
}

.related-articles h4 {
  font-size: 15px;
  font-weight: bold;
  color: #2c6e8a;
  margin: 0 0 10px;
}

.related-articles ul {
  margin: 0;
  padding-left: 20px;
}

.related-articles ul li {
  margin-bottom: 6px;
  font-size: 14px;
}

.hatena-module-title {
  background: #2c6e8a;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 4px 4px 0 0;
  letter-spacing: 1px;
}

.hatena-module-category .category-list {
  font-size: 13px;
}

.hatena-module-category .count {
  color: #999;
  font-size: 12px;
}

.hatena-asin-detail,
.google-auto-placed {
  margin: 24px 0;
}

.ad-in-article {
  text-align: center;
  margin: 32px 0;
  padding: 16px 0;
  border-top: 1px dashed #ddd;
  border-bottom: 1px dashed #ddd;
}

.pager {
  margin: 32px 0;
  text-align: center;
}

.pager a {
  display: inline-block;
  padding: 8px 20px;
  background: #2c6e8a;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.pager a:hover {
  background: #1a4f66;
}

#footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #999;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .navi ul { flex-direction: column; }
  .navi ul li a {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  #content-inner { flex-direction: column; padding: 16px; }
  #box2 { width: 100%; }
  .entry { padding: 16px; }
  .entry-title { font-size: 18px; }
  .entry-content h2 { font-size: 18px; }
  .entry-content h3 { font-size: 16px; }
}