:root {
  color-scheme: light;
  --page-blue: #dcecff;
  --paper: #fffef8;
  --ink: #182034;
  --blue: #164aa5;
  --blue-dark: #082d73;
  --blue-pale: #eef6ff;
  --line: #8ba4c4;
  --red: #d60000;
  --yellow: #fff19a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--page-blue);
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .42) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, .42) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, .42) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, .42) 75%);
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: 12px 12px;
  font-family: Verdana, "MS PGothic", "ＭＳ Ｐゴシック", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

a {
  color: #0000cc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:visited {
  color: #661199;
}

a:hover {
  color: var(--red);
  background: #ffff99;
}

.site-frame {
  width: min(780px, calc(100% - 24px));
  margin: 18px auto;
  padding: 8px 18px 22px;
  border: 1px solid #6c86aa;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(45, 74, 116, .2);
}

.welcome {
  margin: -1px -11px 18px;
  padding: 5px 8px;
  border: 1px solid #718aaa;
  color: #fff;
  background: linear-gradient(#4f7abd, #174a98);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .08em;
  text-align: center;
}

.site-header {
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--blue-dark);
  font-family: "MS UI Gothic", "ＭＳ Ｐゴシック", Meiryo, sans-serif;
  font-size: clamp(36px, 8vw, 58px);
  line-height: 1.15;
  letter-spacing: .06em;
  text-shadow: 2px 2px 0 #b9cff0;
}

.subtitle {
  margin: 4px 0 14px;
  color: #52637d;
  font-weight: bold;
  letter-spacing: .18em;
}

.classic-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 14px;
}

.classic-nav a {
  min-width: 92px;
  padding: 4px 12px;
  border: 2px outset #d9e2ee;
  color: #15264a;
  background: #e7edf4;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

.classic-nav a:hover {
  border-style: inset;
  color: #000;
  background: #d8e4f4;
}

.hero-image {
  max-width: 650px;
  margin: 0 auto 12px;
  padding: 5px;
  border: 1px solid #7b8fa8;
  background: #fff;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.news-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 650px;
  margin: 0 auto 18px;
  padding: 5px 9px;
  border-top: 1px dashed #7790b0;
  border-bottom: 1px dashed #7790b0;
  background: #f6faff;
  font-size: 12px;
  text-align: left;
}

.news-box strong {
  flex: 0 0 auto;
  color: var(--red);
}

main {
  display: grid;
  gap: 18px;
}

.classic-section {
  border: 1px solid var(--line);
  background: #fff;
}

.classic-section h2 {
  margin: 0;
  padding: 4px 10px;
  border-bottom: 1px solid #486b9f;
  color: #fff;
  background: linear-gradient(to right, var(--blue-dark), #477dc2 70%, #b6d1f3);
  font-size: 16px;
  letter-spacing: .12em;
}

.classic-section h2::before {
  content: "■ ";
  color: #fff6a8;
}

.link-list {
  margin: 0;
  padding: 7px 14px 9px 30px;
  list-style: square;
}

.link-list li {
  padding: 7px 4px;
  border-bottom: 1px dotted #a9b6c7;
}

.link-list li:last-child {
  border-bottom: 0;
}

.link-list a {
  font-weight: bold;
}

.link-list li > span {
  margin-left: 12px;
  color: #6b7482;
  font-size: 11px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.compact-list {
  min-height: 118px;
}

.section-note {
  margin: 0;
  padding: 9px 14px 2px;
  color: #5e4a18;
  font-size: 12px;
}

.refuge-section {
  margin-top: 10px;
  border-color: #ba9b50;
  background: #fffdf1;
}

.refuge-section h2 {
  border-color: #8e741d;
  background: linear-gradient(to right, #735800, #be9418 70%, #f4df87);
}

.refuge-list {
  background: linear-gradient(#fffdf1, #fff9d9);
}

.new-link {
  background: var(--yellow);
}

.new-link b {
  display: inline-block;
  margin-left: 7px;
  padding: 0 4px;
  color: #fff;
  background: var(--red);
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 1.5;
  transform: rotate(-2deg);
}

footer {
  margin-top: 24px;
  color: #667085;
  font-size: 11px;
  text-align: center;
}

footer p {
  margin: 3px 0;
}

.footer-rule {
  overflow: hidden;
  color: #7592ba;
  letter-spacing: .35em;
  white-space: nowrap;
}

@media (max-width: 620px) {
  body {
    font-size: 13px;
  }

  .site-frame {
    width: calc(100% - 12px);
    margin: 6px auto;
    padding: 6px 10px 18px;
    box-shadow: none;
  }

  .welcome {
    margin: 0 -4px 14px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
    letter-spacing: 0;
  }

  .classic-nav a {
    flex: 1 1 42%;
    min-width: 0;
  }

  .news-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .compact-list {
    min-height: 0;
  }

  .link-list li > span {
    display: block;
    margin: 2px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
