:root {
  --color-primary: #2c3e50;
  --color-accent: #3498db;
  --color-bg: #f7f8fa;
  --color-border: #ddd;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--color-bg);
  color: #333;
  line-height: 1.7;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5px 16px 5px;
}

.site-header__title {
  display: block;
  line-height: 0;
  align-self: center;
}

.site-header__logo {
  width: 400px;
  object-fit: contain;
  display: block;
}

@media (min-width: 600px) {
  .site-header__inner .site-header__logo {
    width: 800px;
    height: 200px;
    max-width: 100%;
  }
}
/* ハンバーガーメニュー */
.hamburger {
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 200;
  align-self: flex-start;
  margin-top: 4px;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.is-active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 150;
  padding-top: 64px;
}

.nav-drawer.is-open {
  right: 0;
}

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

.nav-drawer li a {
  display: block;
  padding: 16px 20px;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 140;
}

.nav-overlay.is-open {
  display: block;
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px 60px;
  min-height: 60vh;
}

.site-footer {
  background: var(--color-primary);
  color: #ccc;
  text-align: center;
  padding: 20px 16px;
  font-size: 0.85rem;
}

/* 記事一覧 */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.post-list__date {
  font-size: 0.85rem;
  color: #888;
}

.post-list__title {
  font-size: 1.1rem;
  margin: 4px 0 0;
}

/* ページネーション */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.pagination__link {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
}

.pagination__link.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* 記事詳細 */
.post-detail__title {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.post-detail__date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.post-detail__body {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  word-break: break-word;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
}

.tag-list__item a {
  display: inline-block;
  background: #eef4fb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* イラスト一覧タイル */
.illust-tile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.illust-tile__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.illust-inline {
  margin: 20px 0;
}

.illust-inline__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}
@media (min-width: 600px) {
  .site-main {
    padding: 30px 20px 80px;
  }
}