:root {
  --ink: #22252a;
  --muted: #6b7280;
  --accent: #1d6b52;
  --line: #e3e6e3;
  --bg: #f7f7f5;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}
header.site {
  background: #faf6ec url('images/mole-header.jpg') no-repeat center center;
  background-size: cover;
  border-bottom: 3px solid var(--accent);
  padding: 52px 16px 44px;
  text-align: center;
}
header.site h1, header.site p { text-shadow: 0 1px 0 rgba(255,255,255,.75), 0 0 8px rgba(255,255,255,.65); }
header.site h1 { margin: 0; font-size: 1.7rem; letter-spacing: .02em; }
header.site h1 a { color: var(--ink); text-decoration: none; }
header.site p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
main { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.card h2 { margin-top: 0; font-size: 1.25rem; line-height: 1.5; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.date { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
article p { margin: 0 0 1em; }
article h3 { font-size: 1.05rem; margin: 1.4em 0 .5em; }
article img { max-width: 100%; height: auto; border-radius: 4px; margin: .5em 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: .5em 0 1em; }
th, td { border: 1px solid var(--line); padding: 4px 8px; text-align: right; }
th { background: #f0f3f1; }
td:first-child, th:first-child { text-align: left; }
.record {
  background: #f0f3f1;
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  margin: 1em 0;
  font-size: .95rem;
}
.record p { margin: 0; }
ul.posts { list-style: none; margin: 0; padding: 0; }
ul.posts li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
ul.posts img.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
ul.posts li:last-child { border-bottom: none; }
ul.posts a { color: var(--ink); text-decoration: none; font-weight: 600; }
ul.posts a:hover { color: var(--accent); }
ul.posts .date { display: block; margin: 0; }
ul.posts .preview { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
footer.site {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding: 24px 16px 40px;
}
footer.site a { color: var(--accent); }
a { color: var(--accent); }
.back { font-size: .9rem; }
nav.tabs { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
nav.tabs a { padding: 5px 20px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); font-size: .95rem; }
nav.tabs a.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.horse { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.horse h3 { margin: 0 0 2px; font-size: 1.12rem; }
.horse h3 .finish { color: var(--accent); font-size: .95rem; margin-left: 6px; }
.horse p { margin: 0 0 8px; }
.horse .meta { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.horse .pedigree { font-size: .92rem; margin: 0 0 6px; }
.horse .src { font-size: .85rem; }
.forecast { background: #f0f3f1; border-left: 4px solid var(--accent); padding: 8px 12px; margin: 0 0 10px; font-size: .93rem; }
table.horses { font-size: .88rem; }
table.horses th, table.horses td { text-align: left; vertical-align: top; }
table.horses td:first-child { white-space: nowrap; font-weight: 600; }
.cal-wrap { display: flex; gap: 20px; flex-wrap: wrap; }
.cal-month { font-weight: 700; margin: 0 0 6px; }
table.cal { border-collapse: collapse; font-size: .9rem; width: auto; margin: 0; }
table.cal th, table.cal td { border: 1px solid var(--line); width: 38px; height: 34px; text-align: center; padding: 0; }
table.cal th { background: #f0f3f1; }
table.cal td a { display: block; font-weight: 700; color: var(--accent); }
.date-head { font-size: 1rem; margin: 18px 0 4px; color: var(--ink); }
.date-head:first-of-type { margin-top: 4px; }

.cmt { color: var(--muted); font-size: .85em; margin-left: 6px; white-space: nowrap; }
.newmark { background: #d33; color: #fff; font-size: .68em; font-weight: bold; padding: 1px 6px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }

ul.posts .tcol { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
ul.posts .tcol .cmt { text-align: center; margin-left: 0; }
ul.posts li > div .cmt { display: block; margin: 2px 0 0; }
.newmark { background: none; color: inherit; font-size: 1.05em; padding: 0; border-radius: 0; }
.cal-nav { flex-wrap: wrap; row-gap: 6px; }

article h3.sec {
  background: var(--accent);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 6px 12px;
  border-radius: 4px;
  margin: 1.7em 0 .7em;
}

/* 広い画面（スマホ横向き・タブレット・PC）では本文カラムを画面幅に合わせて広げる */
@media (min-width: 800px) {
  main { max-width: min(1150px, 95vw); }
}
