:root {
  --paper: #fffdf8;
  --paper-deep: #f4f1e8;
  --ink: #252a27;
  --muted: #626b65;
  --green: #315a4a;
  --green-dark: #204438;
  --coral: #c75f4a;
  --blue: #d9e9ec;
  --line: #d9ddd6;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--coral); }
img { max-width: 100%; }

.wrap { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255,253,248,.96);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-family: Georgia, serif;
  font-size: 21px;
  border-radius: 4px;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: #3c453f; font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--coral); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero {
  position: relative;
  min-height: min(540px, 68vh);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--green-dark);
}

.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: rgba(20,35,29,.45); }
.hero__content { position: relative; z-index: 1; padding-bottom: 62px; color: white; text-shadow: 0 1px 8px rgba(0,0,0,.32); }
.hero__eyebrow { margin: 0 0 12px; font-weight: 700; }
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.2;
  letter-spacing: 0;
}
.keep-together { white-space: nowrap; }
.hero__content > p:last-child { max-width: 600px; margin: 18px 0 0; font-size: 18px; font-weight: 600; }

.content-band { padding: 76px 0 92px; }
.latest-section { border-top: 7px solid var(--coral); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 76px; align-items: start; }
.section-heading { margin-bottom: 30px; }
.section-heading p, .side-label, .page-header > p { margin: 0 0 2px; color: var(--coral); font-family: Georgia, serif; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 30px; }

.post-list { display: grid; gap: 18px; }
.post-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: white;
}
.post-card__meta, .post-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.post-card__meta a, .post-hero__meta a { color: var(--green); font-weight: 700; text-decoration: none; }
.post-card h3 { margin: 6px 0 8px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 24px; line-height: 1.45; }
.post-card h3 a { text-decoration: none; }
.post-card p { margin: 0 0 12px; color: #525a55; }
.text-link { color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; }
.archive-cta { margin: 30px 0 0; text-align: right; }
.archive-cta a { color: var(--green); font-weight: 700; }

.side-column { display: grid; gap: 42px; }
.side-column h2 { margin: 0 0 12px; font-size: 20px; }
.side-column p { margin-top: 0; color: #535d57; }
.profile-panel { padding-top: 18px; border-top: 4px solid var(--coral); }
.category-panel { padding-top: 18px; border-top: 4px solid var(--green); }
.topic-panel { padding-top: 18px; border-top: 4px solid var(--blue); }
.category-panel ul, .topic-panel ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.category-panel li, .topic-panel li { border-bottom: 1px solid var(--line); }
.category-panel li a, .topic-panel li a { display: flex; justify-content: space-between; gap: 14px; padding: 10px 2px; text-decoration: none; }
.category-panel b, .topic-panel b { color: var(--coral); }
.category-more { display: inline-block; margin-top: 14px; }

.page-shell { padding: 68px 0 100px; }
.page-header { max-width: 780px; margin-bottom: 46px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 0; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 42px; line-height: 1.35; }

.prose { max-width: 760px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 17px; line-height: 2.05; }
.prose h2 { margin: 2.7em 0 .8em; padding-left: 14px; border-left: 5px solid var(--coral); font-size: 25px; line-height: 1.5; }
.prose p { margin: 0 0 1.55em; }
.prose a { color: var(--green); font-weight: 700; }

.post-shell { padding: 64px 0 96px; }
.post-hero { max-width: 880px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.post-hero h1 { margin: 12px 0; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 44px; line-height: 1.45; }
.post-hero > p { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; }
.post-body { padding-top: 54px; }
.post-body > p:first-child::first-letter { float: left; margin: .08em .12em 0 0; color: var(--green); font-size: 3.2em; line-height: .9; }
.missing-media { display: inline-block; margin: 12px 0; padding: 10px 12px; border-left: 4px solid var(--line); color: var(--muted); font-family: sans-serif; font-size: 13px; }
.mina-series-promo--post { max-width: 880px; margin-top: 64px; }
.mina-series-promo__link {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: linear-gradient(135deg, white 0%, #f6f3e9 100%);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(32, 68, 56, .08);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mina-series-promo__link:hover {
  border-color: #b9c9c0;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(32, 68, 56, .14);
  transform: translateY(-2px);
}
.mina-series-promo__link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.mina-series-promo__visual {
  align-self: center;
  aspect-ratio: 5 / 8;
  margin: 18px 0 18px 18px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--green-dark);
  box-shadow: 0 6px 16px rgba(20, 35, 29, .2);
}
.mina-series-promo__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mina-series-promo__body { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 30px 26px 0; }
.mina-series-promo__eyebrow { margin-bottom: 4px; color: var(--coral); font-family: Georgia, serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mina-series-promo__title { color: var(--green-dark); font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 25px; line-height: 1.45; }
.mina-series-promo__description { margin-top: 10px; color: #535d57; font-size: 14px; line-height: 1.75; }
.mina-series-promo__cta { margin-top: 16px; color: var(--green); font-size: 14px; font-weight: 700; }
.mina-series-promo--sidebar .mina-series-promo__link { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; border-left-width: 4px; }
.mina-series-promo--sidebar .mina-series-promo__visual { margin: 14px 0 14px 14px; }
.mina-series-promo--sidebar .mina-series-promo__body { padding: 16px 14px 16px 0; }
.mina-series-promo--sidebar .mina-series-promo__title { font-size: 18px; }
.mina-series-promo--sidebar .mina-series-promo__description { margin-top: 7px; font-size: 12px; line-height: 1.6; }
.mina-series-promo--sidebar .mina-series-promo__cta { margin-top: 10px; font-size: 12px; }
.post-nav { max-width: 880px; margin-top: 62px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.post-nav a { display: flex; flex-direction: column; text-decoration: none; }
.post-nav a:last-child { text-align: right; }
.post-nav span { color: var(--muted); font-size: 12px; }
.post-nav strong { color: var(--green); font-size: 14px; }

.legacy-comments { max-width: 880px; margin-top: 64px; padding-top: 32px; border-top: 4px solid var(--green); }
.legacy-comments h2 { margin: 0 0 22px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 24px; }
.legacy-comments ol { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.legacy-comments li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.legacy-comments header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-bottom: 8px; }
.legacy-comments time { color: var(--muted); font-size: 12px; }
.legacy-comments p { margin: 0; white-space: normal; }

.archive-group { margin-bottom: 50px; scroll-margin-top: 20px; }
.archive-group h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--green); }
.archive-group h2 span { color: var(--muted); font-family: sans-serif; font-size: 13px; }
.archive-list { margin: 0; padding: 0; list-style: none; }
.archive-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.archive-list time { color: var(--muted); font-family: sans-serif; font-size: 13px; }
.archive-list a { color: var(--ink); font-weight: 700; text-decoration: none; }

.year-index { display: grid; gap: 12px; }
.year-group { border: 1px solid var(--line); border-radius: 6px; background: white; scroll-margin-top: 18px; }
.year-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px 20px;
  color: var(--green-dark);
  cursor: pointer;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 23px;
  font-weight: 700;
}
.year-group summary::marker { color: var(--coral); }
.year-group summary b { color: var(--muted); font-family: sans-serif; font-size: 13px; }
.year-group[open] summary { border-bottom: 1px solid var(--line); }
.year-group__months { padding: 28px 24px 8px; }
.month-group { margin-bottom: 38px; }
.month-group h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; padding: 0 0 8px; border: 0; border-bottom: 3px solid var(--green); font-size: 21px; }
.month-group h2 span { color: var(--muted); font-family: sans-serif; font-size: 12px; }

.topic-index { display: grid; gap: 10px; }
.topic-group { border: 1px solid var(--line); border-radius: 6px; background: white; scroll-margin-top: 18px; }
.topic-group summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; padding: 10px 18px; color: var(--green-dark); cursor: pointer; font-weight: 700; }
.topic-group summary::marker { color: var(--coral); }
.topic-group summary b { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.topic-group[open] summary { border-bottom: 1px solid var(--line); }
.topic-group__posts { padding: 8px 18px 18px; }

.search-box { margin-bottom: 38px; }
.search-box label { display: block; margin-bottom: 8px; font-weight: 700; }
.search-control { position: relative; }
.search-control input { width: 100%; min-height: 52px; padding: 10px 48px 10px 14px; border: 2px solid var(--green); border-radius: 4px; background: white; color: var(--ink); font: inherit; }
.search-control input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.search-control button { position: absolute; top: 5px; right: 5px; width: 42px; height: 42px; border: 0; background: transparent; color: var(--muted); font-size: 24px; opacity: 0; pointer-events: none; cursor: pointer; }
.search-control button.is-visible { opacity: 1; pointer-events: auto; }
#search-status { color: var(--muted); font-family: sans-serif; font-size: 14px; }
.search-result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-result p { margin: 0; color: var(--muted); font-family: sans-serif; font-size: 13px; }
.search-result h2 { margin: 3px 0; padding: 0; border: 0; font-size: 21px; }

.site-footer { border-top: 1px solid #8ba198; background: var(--green-dark); color: white; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; padding-block: 40px; }
.site-footer p { margin: 0; }
.site-footer p span { color: #d4e1dc; font-size: 13px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: white; font-size: 13px; }
.site-footer__copy { color: #d4e1dc; font-size: 12px; white-space: nowrap; }
.forest-door {
  display: inline-block;
  margin-left: 7px;
  color: white;
  font-size: 10px;
  text-decoration: none;
  opacity: .12;
  filter: grayscale(1);
  transition: opacity .2s ease;
}
.forest-door:hover, .forest-door:focus-visible { opacity: .72; }

.visitor-observation { max-width: 520px; margin-top: 12px; }
.visitor-observation__heading { margin: 0 0 32px; padding: 0 0 16px; border: 0; border-bottom: 3px solid var(--green); font-size: 25px; }
.visitor-counts { margin: 0; }
.visitor-counts div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.visitor-counts dt { color: var(--muted); font-family: sans-serif; font-size: 15px; }
.visitor-counts dd { min-width: 7ch; margin: 0; color: var(--green-dark); font-family: Georgia, serif; font-size: 24px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.visitor-observation__status { margin-top: 22px; color: var(--muted); font-family: sans-serif; font-size: 12px; }
.visitor-observation[data-state="ready"] .visitor-observation__status { opacity: .7; }

@media (max-width: 820px) {
  .wrap { width: min(calc(100% - 28px), var(--max-width)); }
  .site-header__inner { min-height: 62px; }
  .site-brand { font-size: 16px; }
  .site-brand__mark { width: 31px; height: 31px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px 14px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .hero { min-height: 470px; }
  .hero__image { object-position: 38% center; }
  .hero__shade { background: rgba(20,35,29,.5); }
  .hero__content { padding-bottom: 42px; }
  .hero h1 { font-size: 42px; }
  .hero__content > p:last-child { font-size: 16px; }
  .content-band { padding: 54px 0 68px; }
  .content-grid { grid-template-columns: 1fr; gap: 62px; }
  .post-card { padding: 22px 20px; }
  .post-card h3 { font-size: 21px; }
  .page-shell { padding: 46px 0 72px; }
  .page-header { margin-bottom: 32px; }
  .page-header h1 { font-size: 34px; }
  .prose { font-size: 16px; }
  .post-shell { padding-top: 42px; }
  .post-hero h1 { font-size: 34px; }
  .post-body { padding-top: 38px; }
  .mina-series-promo--post { margin-top: 50px; }
  .mina-series-promo--post .mina-series-promo__link { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .mina-series-promo--post .mina-series-promo__visual { margin: 14px 0 14px 14px; }
  .mina-series-promo--post .mina-series-promo__body { padding: 18px 16px 18px 0; }
  .mina-series-promo--post .mina-series-promo__title { font-size: 20px; }
  .mina-series-promo--post .mina-series-promo__description { margin-top: 7px; font-size: 13px; line-height: 1.6; }
  .mina-series-promo--post .mina-series-promo__cta { margin-top: 11px; font-size: 13px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }
  .archive-list li { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .year-group summary { min-height: 56px; padding: 10px 14px; font-size: 20px; }
  .year-group__months { padding: 22px 14px 4px; }
  .topic-group summary { min-height: 54px; padding: 9px 13px; }
  .topic-group__posts { padding: 6px 13px 14px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .visitor-counts dd { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mina-series-promo__link { transition: none; }
  .mina-series-promo__link:hover { transform: none; }
}

/* All-page blog search */
.blog-search { padding-block: 0 16px; }
.blog-search label { display: block; margin-bottom: 5px; font-size: 13px; color: var(--muted); }
.blog-search__control { display: flex; max-width: 460px; border: 1px solid var(--line); border-radius: 28px; background: white; padding: 4px; gap: 4px; }
.blog-search__control input { flex: 1; min-width: 0; width: 100%; border: 0; border-radius: 24px; padding: 8px 12px; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.blog-search__control button { flex-shrink: 0; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 24px; background: var(--green); color: white; font: inherit; cursor: pointer; }
.blog-search__control button:hover { background: var(--green-dark); }
.blog-search__control input:focus-visible, .blog-search__control button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.post-book-promos {
  max-width: 880px;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.post-book-promos .mina-series-promo__link { height: 100%; }
.hogo-manga-promo .mina-series-promo__visual { aspect-ratio: 4 / 3; }
@media (max-width: 820px) {
  .post-book-promos { margin-top: 50px; }
}
