:root {
  --brand: #005083;
  --brand-deep: #003b61;
  --brand-soft: #eaf3f8;
  --text: #20303b;
  --muted: #6c7b86;
  --line: #dfe6ea;
  --bg: #f6f8fa;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0, 59, 97, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.content-wrap,
.header-inner,
.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 290px; height: auto; }
.official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  transition: .2s ease;
}
.official-link:hover { background: var(--brand); color: var(--white); }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 30%, rgba(255,255,255,.12) 0 7%, transparent 7.5%),
    linear-gradient(120deg, var(--brand-deep), var(--brand));
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  right: -120px;
  top: -160px;
}
.hero-inner { padding: 58px 0 64px; position: relative; z-index: 1; }
.eyebrow,
.section-kicker {
  margin: 0 0 7px;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
}
.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.25;
  letter-spacing: .03em;
}
.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(15px, 2vw, 18px);
}

.toolbar-section { background: var(--white); border-bottom: 1px solid var(--line); }
.toolbar-grid {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}
.search-box input,
.year-filter select {
  width: 100%;
  height: 48px;
  border: 1px solid #cbd6dc;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}
.search-box input:focus,
.year-filter select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,80,131,.12);
}

.latest-section,
.archive-section { padding: 48px 0; }
.archive-section { padding-top: 10px; padding-bottom: 70px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading h2 { margin: 0; font-size: 28px; color: var(--brand-deep); }
.section-kicker { color: var(--brand); }
.result-count { margin: 0; color: var(--muted); font-size: 14px; }

.latest-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
  align-items: center;
  padding: 26px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid #e6ecef;
}
.cover-frame {
  background: #eef2f4;
  padding: 12px;
  border: 1px solid #d8e0e4;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.cover-frame img {
  width: 100%;
  aspect-ratio: 0.707 / 1;
  object-fit: cover;
  background: #fff;
}
.latest-meta { color: var(--brand); font-weight: 800; font-size: 14px; margin: 0 0 4px; }
.latest-title { margin: 0; font-size: clamp(24px, 4vw, 34px); color: var(--brand-deep); }
.latest-description { color: var(--muted); margin: 12px 0 20px; }
.read-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  transition: .2s ease;
}
.read-button:hover { background: var(--brand-deep); transform: translateY(-1px); }

.year-group { margin-top: 36px; }
.year-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 22px;
  color: var(--brand-deep);
}
.year-title::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand);
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.book-card {
  background: var(--white);
  border: 1px solid #e3e9ec;
  border-radius: 10px;
  overflow: hidden;
  transition: .2s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-cover-wrap { padding: 16px 16px 0; }
.book-card .cover-frame { padding: 8px; }
.book-info { padding: 16px; }
.book-issue { margin: 0 0 4px; color: var(--brand); font-weight: 800; font-size: 13px; }
.book-title { margin: 0; font-size: 17px; line-height: 1.5; }
.book-date { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.book-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
}
.book-link::after { content: "→"; }
.empty-state {
  background: var(--white);
  border: 1px dashed #c8d2d8;
  border-radius: 10px;
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
}

.site-footer { background: #eef3f6; border-top: 1px solid #dce4e8; }
.footer-inner {
  padding: 34px 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.footer-logo { width: 250px; margin-bottom: 12px; }
.footer-inner p { margin: 0; font-size: 13px; color: var(--muted); }
.copyright { text-align: right; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .content-wrap,
  .header-inner,
  .hero-inner { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 230px; }
  .official-link { display: none; }
  .hero-inner { padding: 42px 0 46px; }
  .toolbar-grid { grid-template-columns: 1fr; }
  .latest-card { grid-template-columns: 130px 1fr; gap: 18px; padding: 18px; }
  .latest-description { display: none; }
  .read-button { min-width: 0; width: 100%; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .book-cover-wrap { padding: 10px 10px 0; }
  .book-info { padding: 12px; }
  .book-title { font-size: 15px; }
  .footer-inner { display: block; }
  .copyright { text-align: left; margin-top: 18px !important; }
}

@media (max-width: 440px) {
  .latest-card { grid-template-columns: 1fr; }
  .latest-card .cover-frame { width: min(220px, 72%); margin: 0 auto; }
}
