@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

:root {
  --color-bg:      #faf8f5;
  --color-surface: #ffffff;
  --color-text:    #25272F;
  --color-muted:   #888;
  --color-accent:  #795648;
  --color-accent2: #b5978a;
  --color-border:  #e5e0da;
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
}

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

/* ---- Layout ---- */
.inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0 20px;
  text-align: center;
}
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--color-text);
  text-decoration: none;
}
.site-title:hover { text-decoration: none; color: var(--color-accent); }
.site-desc {
  font-size: .82rem;
  color: var(--color-muted);
  margin-top: 4px;
  letter-spacing: .08em;
}

/* ---- Category nav ---- */
.cat-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  text-align: center;
}
.cat-nav .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
}
.cat-nav a {
  font-size: .82rem;
  color: var(--color-muted);
  padding: 4px 0;
  letter-spacing: .04em;
}
.cat-nav a:hover, .cat-nav a.active {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-accent);
}

/* ---- Main ---- */
main.inner {
  padding-top: 40px;
  padding-bottom: 60px;
}

/* ---- Post list ---- */
.post-list { display: flex; flex-direction: column; gap: 0; }

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 16px;
  transition: box-shadow .15s;
  overflow: hidden;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(121,86,72,.08); }

.post-card.has-thumb {
  display: flex;
  align-items: stretch;
}
.card-thumb {
  flex: 0 0 160px;
  display: block;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.post-card:hover .card-thumb img { transform: scale(1.03); }

.card-body {
  flex: 1;
  padding: 20px 24px;
  min-width: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.post-meta time {
  font-size: .78rem;
  color: var(--color-muted);
  letter-spacing: .04em;
}
.cat-tag {
  font-size: .72rem;
  color: var(--color-accent);
  background: #f5ede9;
  padding: 2px 10px;
  border-radius: 20px;
  text-decoration: none;
}
.cat-tag:hover { background: #e9d8d2; text-decoration: none; }

.post-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}
.post-card h2 a { color: var(--color-text); }
.post-card h2 a:hover { color: var(--color-accent); text-decoration: none; }

.excerpt {
  font-size: .88rem;
  color: #666;
  line-height: 1.7;
}

.empty { color: var(--color-muted); text-align: center; padding: 60px 0; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  font-size: .88rem;
  color: var(--color-muted);
}
.pagination a { color: var(--color-accent); }

/* ---- Single post ---- */
main.single { padding-top: 40px; }

main.single article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 36px 40px;
}

main.single h1 {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--color-text);
}

.post-body {
  font-size: .95rem;
  line-height: 1.9;
  color: #333;
}
.post-body p { margin-bottom: 1.2em; }
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 16px 0;
}

.common-block {
  background: #f5ede9;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: .9rem;
}
.common-block a { color: var(--color-accent); font-weight: bold; }

.post-nav {
  margin-top: 28px;
  font-size: .85rem;
}
.post-nav a { color: var(--color-muted); }
.post-nav a:hover { color: var(--color-accent); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  text-align: center;
  background: var(--color-surface);
}
.site-footer a { color: var(--color-accent); font-size: .85rem; }
.copy { font-size: .78rem; color: var(--color-muted); margin-top: 6px; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .post-card.has-thumb { flex-direction: column; }
  .card-thumb { flex: 0 0 180px; width: 100%; }
  .card-thumb img { height: 180px; }
  .card-body { padding: 16px; }
  main.single article { padding: 24px 16px; }
  main.single h1 { font-size: 1.15rem; }
}
