*, *::before, *::after { box-sizing: border-box; }
:root {
  --accent: rgb(140, 217, 91);
  --accent-dark: #24542b;
  --accent-tint: rgb(140 217 91 / .16);
  --ink: #202720;
  --muted: #5a665a;
  --hairline: #e2eae2;
  color: var(--ink);
  background: #fff;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  line-height: 1.7;
}
html, body { overflow-x: clip; }
body { margin: 0; overflow-wrap: anywhere; }
.wrap { max-width: 1060px; margin-inline: auto; padding-inline: 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 2px; }
@media (hover: hover) {
  a:hover { background-color: var(--accent-tint); }
}

/* ヘッダー：ブログ名を主役に、タグラインとラベルナビを下に積む */
.site-header { padding: 1.4rem 0 1.1rem; border-bottom: 3px solid var(--accent); }
.site-title { color: inherit; font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; line-height: 1.3; text-decoration: none; }
.site-tagline { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.label-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 2.5rem;
  padding: .3rem .85rem; border: 1px solid var(--hairline); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .88rem; text-decoration: none;
}
@media (hover: hover) {
  .chip:hover { background-color: var(--accent-tint); }
}

/* メタ情報：日付＋ラベルチップ（小さな面ではチップを淡色に） */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .85rem; }
.meta time { color: var(--muted); font-variant-numeric: tabular-nums; }
.meta .chip { min-height: 0; padding: .05rem .6rem; border-color: transparent; background: var(--accent-tint); font-size: .78rem; }
@media (hover: hover) {
  .meta .chip:hover { background: var(--accent); }
}

/* トップの主役：最新記事を大きく見せる */
.hero { margin: 1.6rem 0 2.2rem; }
.hero-thumb { display: block; }
.hero-thumb img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 16px; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px;
}
.hero-body { margin-top: 1rem; }
.hero-title { margin: .45rem 0 0; font-size: 1.65rem; line-height: 1.45; }
.hero-title a { color: inherit; text-decoration: none; }
.hero-excerpt { margin: .6rem 0 0; color: var(--muted); }
@media (min-width: 720px) {
  .hero-title { font-size: 2rem; }
}

/* セクション見出しとカード／行リスト */
.section-title { margin: 2.2rem 0 1rem; padding-left: .7rem; border-left: 5px solid var(--accent); font-size: 1.35rem; line-height: 1.4; }
.section-title-sub { margin-top: 2.6rem; font-size: 1.15rem; }
.listing-count { margin: -.4rem 0 0; color: var(--muted); font-size: .9rem; }
.post-grid { display: grid; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  overflow: hidden; border: 1px solid var(--hairline); border-radius: 12px; background: #fff;
  box-shadow: 0 1px 2px rgb(32 39 32 / .05), 0 10px 30px rgb(32 39 32 / .07);
  transition: box-shadow .2s ease;
}
@media (hover: hover) {
  .card:hover { box-shadow: 0 2px 4px rgb(32 39 32 / .07), 0 16px 40px rgb(32 39 32 / .12); }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
.card-thumb { display: block; }
.card-thumb img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px;
}
.card-body { padding: .9rem 1.1rem 1.1rem; }
.card-title { margin: .45rem 0 0; font-size: 1.08rem; line-height: 1.5; }
.card-title a { color: inherit; text-decoration: none; }
.card-excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: .5rem 0 0; color: var(--muted); font-size: .9rem;
}
.post-rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: flex-start; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--hairline); }
.row-thumb { flex: 0 0 auto; }
.row-thumb img {
  display: block; width: 104px; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 8px; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px;
}
.row-body { min-width: 0; }
.row-title { margin: .3rem 0 0; font-size: 1rem; line-height: 1.5; }
.row-title a { color: inherit; text-decoration: none; }
@media (min-width: 720px) {
  .row-thumb img { width: 148px; }
}

/* 記事ページ：読み物の枠（本文幅760px・行間広め） */
.article { max-width: 760px; margin-inline: auto; padding-top: 1.6rem; }
.article-title { margin: .6rem 0 0; font-size: 1.75rem; line-height: 1.45; }
@media (min-width: 720px) {
  .article-title { font-size: 2.05rem; }
}
.entry-content { margin-top: 1.6rem; font-size: 1.03rem; line-height: 1.85; }
.entry-content pre { overflow-x: auto; }
.article-nav { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); }

/* モバイルガード：Blogger 由来の固定幅要素をテーマ側で吸収する */
.entry-content img, .entry-content iframe, .entry-content video,
.entry-content embed, .entry-content object, .entry-content table,
.entry-content div { max-width: 100%; }
.entry-content img { height: auto; }
.entry-content iframe { border: 0; }
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtube-nocookie.com"],
.entry-content iframe[src*="vimeo.com"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content code { overflow-wrap: anywhere; }

/* フッター：ラベルと固定ページの導線を淡い緑の地で整理 */
.site-footer { margin-top: 3.5rem; padding: 1.6rem 0 2.2rem; border-top: 3px solid var(--accent); background: #f6faf3; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.4rem 3rem; }
.footer-group { display: flex; flex-direction: column; gap: .35rem; }
.footer-group h2 { margin: 0 0 .35rem; font-size: .95rem; }
.footer-name { width: 100%; margin: .4rem 0 0; color: var(--muted); font-size: .85rem; }
