:root {
  --bg: #d8c8eb;
  --card: #f8f8f8;
  --text: #28212d;
  --muted: #635b6b;
  --line: #d6d0dc;
  --accent: #93005f;
  --accent-strong: #6a0045;
  --shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Meiryo", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 13px;
}

a { color: #1126bd; text-decoration: none; }
a:hover { color: #da2f7f; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 1000; }

.container { max-width: 1250px; margin: 0 auto; }

.site-header {
  margin-bottom: 14px;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand-wrap { text-align: left; }
.logo {
  display: block;
  width: min(100%, 680px);
  height: auto;
}
.hero-copy { margin: 4px 0 0; color: #5e4a66; text-align: center; }
.page-stack { padding-bottom: 20px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; margin-top: 14px; }
.main-column { display: grid; gap: 14px; }
.sidebar { display: grid; gap: 14px; align-content: start; }

.panel {
  background: #f4f4f4;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 10px;
}
.panel-title {
  margin: 0 0 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 3px;
}
.meta { color: var(--muted); font-size: 11px; }

.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumb-card { position: relative; overflow: hidden; background: #d3d3d3; }
.thumb-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.thumb-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.news-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.news-list li { border-bottom: 1px solid #e2dee6; padding: 8px 6px; }
.news-list span { display: block; color: #6d6776; font-size: 10px; margin-top: 2px; }

.article-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.article-card {
  display: block;
  border: 1px solid #e5e1e9;
  background: #fff;
  padding: 6px;
}
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.article-card h3 { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.article-card .meta { margin: 6px 0 0; }

.search-form { display: grid; gap: 8px; }
.search-form input,
.search-form select {
  width: 100%;
  border: 1px solid #cfc5d8;
  padding: 6px 7px;
  font-size: 12px;
}
.search-form button {
  width: 38px;
  border: 0;
  background: #c1367b;
  color: #fff;
  border-radius: 3px;
  padding: 4px 0;
  font-size: 11px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.popular-list { display: grid; gap: 8px; }
.popular-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.popular-item span { display: block; margin-top: 4px; font-size: 11px; color: #554f5d; line-height: 1.3; }

.post, .calendar, form.admin {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.post { padding: 20px; }
.post h1 { margin: 0 0 10px; line-height: 1.4; font-size: 28px; }
.post-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px 0 2px;
}
.nav-links { margin-top: 20px; display: flex; justify-content: space-between; gap: 10px; }

.calendar { padding: 10px; margin-top: 12px; }
.calendar h3 { margin: 0 0 10px; font-size: 16px; }
.calendar table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th, .calendar td { text-align: center; padding: 7px 4px; border: 1px solid var(--line); font-size: 12px; }

form.admin { padding: 16px; }
form.admin input, form.admin textarea {
  width: 100%;
  margin: 6px 0 12px;
  padding: 10px 12px;
  border: 1px solid #d8e0ef;
  border-radius: 10px;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .container { padding: 0 10px; }
  .content-layout { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .container { padding: 0; }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .brand-wrap {
    width: 100%;
  }
  .logo { width: 100%; }
  .post h1 { font-size: 23px; }
  .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.site-header .header-inner { max-width: 100%; padding: 0; }
.site-header .brand-wrap { width: 100%; text-align: center; }
.site-header .logo {
  width: min(100%, 1250px);
  max-width: 100%;
  margin: 0 auto;
}
