@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600&family=Noto+Sans+JP:wght@400;500&display=swap");

:root {
  --paper: #fdf8ec;
  --ink: #2b1a11;
  --accent: #c26b3a;
  --line: #d7c8aa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fff7e1 0%, #f2e4c8 60%, #e8d9bc);
  color: var(--ink);
  line-height: 1.75;
  padding: 40px 24px 64px;
}

.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px 40px;
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.08);
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 32px;
}

.logo {
  font-family: "Noto Serif JP", serif;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dotted var(--ink);
  padding-bottom: 2px;
  font-size: 0.95rem;
}

.hero {
  padding: 20px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.hero .date {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #6e513c;
}

.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 8px 0 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card-grid article {
  background: #fffdf6;
  border: 1px solid var(--line);
  padding: 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.05);
}

.card-grid h2 {
  font-family: "Noto Serif JP", serif;
  margin: 0;
  font-size: 1.3rem;
}

.card-grid button {
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 6px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.card-grid button:hover {
  background: var(--ink);
  color: #fff;
}

.button-link {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 7px 18px;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.button-link:hover {
  background: var(--ink);
  color: #fff;
}

footer {
  border-top: 2px solid var(--line);
  margin-top: 40px;
  padding-top: 12px;
  font-size: 0.85rem;
}
