:root {
  --bg: #faf6ee;
  --surface: #ffffff;
  --surface-2: #f4ecdc;
  --border: #e6dcc4;
  --text: #2b2420;
  --text-muted: #7a6f5f;
  --accent: #8b2635; /* deep burgundy, mystery/book vibe */
  --accent-dark: #6e1d2a;
  --accent-2: #c9a227; /* gold, bookmark ribbon */
  --shadow: 0 2px 10px rgba(139, 38, 53, 0.08);
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-title .book {
  color: var(--accent);
}

nav.site-nav a {
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

nav.site-nav a:hover {
  color: var(--accent-dark);
  background: var(--surface-2);
  text-decoration: none;
}

nav.site-nav a.nav-cta {
  margin-left: 12px;
  color: #221a06;
  background: var(--accent-2);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.35);
}

nav.site-nav a.nav-cta:hover {
  color: #221a06;
  background: #ddb52f;
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  nav.site-nav a {
    margin-left: 0;
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  nav.site-nav a.nav-cta {
    margin-left: 0;
  }
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.page-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  align-items: flex-start;
  gap: 44px;
}

.page-layout main {
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

.widget {
  width: 100%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-widget {
  text-align: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: block;
}

.profile-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.profile-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.profile-links a {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.profile-links a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
}

.cta-widget-side p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.cta-btn-side {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 0;
  font-size: 14px;
}

.recommend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommend-list a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  display: block;
  overflow-wrap: break-word;
  word-break: break-word;
}

.recommend-list a:hover {
  color: var(--accent-dark);
}

@media (max-width: 1040px) {
  .page-layout {
    flex-direction: column;
    align-items: stretch;
    padding: 40px 20px;
    gap: 28px;
  }

  .page-layout main {
    min-width: 0;
    width: 100%;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
  }

  .sidebar .widget {
    flex: 1 1 220px;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .page-layout {
    padding: 28px 16px;
    gap: 20px;
  }

  .sidebar {
    flex-direction: column;
  }

  .sidebar .widget {
    flex: none;
  }
}

.hero {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 30px;
  margin: 0 0 12px;
  text-wrap: balance;
}

.hero p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 38, 53, 0.14);
}

.post-card .date {
  font-size: 13px;
  color: var(--text-muted);
}

.post-card h2 {
  margin: 6px 0 8px;
  font-size: 19px;
}

.post-card h2 a {
  color: var(--text);
}

.post-card h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-card .excerpt {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-dark);
  background: rgba(139, 38, 53, 0.08);
  border: 1px solid rgba(139, 38, 53, 0.24);
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 10px;
}

.tag.guide {
  color: #8a6d00;
  background: rgba(201, 162, 39, 0.14);
  border-color: rgba(201, 162, 39, 0.35);
}

article.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  box-shadow: var(--shadow);
}

article.post .date {
  font-size: 13px;
  color: var(--text-muted);
}

article.post h1 {
  font-size: 28px;
  margin: 8px 0 24px;
  text-wrap: balance;
}

article.post h2 {
  font-size: 20px;
  margin-top: 32px;
  color: var(--accent);
}

article.post p {
  font-size: 15px;
  color: var(--text);
}

.disclaimer {
  margin-top: 32px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.back-link:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  text-decoration: none;
}

.pr-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #14110a;
  background: #ffd166;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.ad-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.info-box {
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
}

.info-box h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--accent-dark);
}

.info-box p {
  margin: 0 0 8px;
  font-size: 14px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box .source {
  font-size: 12px;
  color: var(--text-muted);
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 14px;
}

.rating .stars {
  color: var(--accent-2);
  font-size: 20px;
  letter-spacing: 2px;
}

.book-meta {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
}

.book-meta td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}

.book-meta td:first-child {
  color: var(--text-muted);
  width: 8em;
}

.book-meta td:last-child {
  font-weight: 600;
}

.goods-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0;
}

.goods-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.goods-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.goods-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.goods-card .goods-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
}

.goods-card .goods-link:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.book-cta {
  display: flex;
  gap: 18px;
  align-items: center;
}

.book-cta.mini {
  margin: 14px 0 24px;
}

.book-cover {
  flex-shrink: 0;
  width: 76px;
  height: 112px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: #fdf9f0;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2), inset 3px 0 0 rgba(255, 255, 255, 0.15);
}

.book-cover.c1 { background: linear-gradient(160deg, #8b2635, #551620); }
.book-cover.c2 { background: linear-gradient(160deg, #2b4a5e, #14232f); }
.book-cover.c3 { background: linear-gradient(160deg, #6b5116, #362a0c); }
.book-cover.c4 { background: linear-gradient(160deg, #3d5c3a, #1f2f1d); }
.book-cover.c5 { background: linear-gradient(160deg, #5a3a6b, #2c1c34); }

.book-cta-info {
  flex: 1;
  min-width: 0;
}

.book-cta-info p {
  margin: 0 0 8px;
}

.cta-box {
  margin-top: 36px;
  padding: 26px 28px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.02));
  border-radius: 12px;
}

.cta-box h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--text);
}

.cta-box p {
  margin: 0 0 4px;
}

.cta-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 14px 26px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
}

.cta-btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.cta-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.7;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  margin-bottom: 10px;
  font-size: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-dark);
}

@media (max-width: 640px) {
  main {
    padding: 28px 16px;
  }

  .hero {
    padding: 24px 0 20px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.5;
  }

  .hero p {
    font-size: 14px;
  }

  .post-card {
    padding: 18px;
  }

  .post-card h2 {
    font-size: 17px;
  }

  .post-card .excerpt {
    font-size: 13.5px;
  }

  article.post {
    padding: 22px 18px;
  }

  article.post h1 {
    font-size: 22px;
    margin: 4px 0 20px;
  }

  article.post h2 {
    font-size: 18px;
    margin-top: 28px;
  }

  article.post p {
    font-size: 16px;
    line-height: 1.9;
  }

  .info-box,
  .info-box p {
    font-size: 14px;
  }

  .book-meta {
    font-size: 13.5px;
  }

  .cta-box {
    padding: 20px;
  }

  .cta-box h3 {
    font-size: 16px;
  }

  .cta-btn {
    display: block;
    text-align: center;
  }

  .book-cover {
    width: 60px;
    height: 90px;
    font-size: 10px;
  }

  .book-cta {
    gap: 12px;
  }
}
