:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6678;
  --line: #dfe4ec;
  --soft: #f5f7fa;
  --brand: #183b64;
  --brand-dark: #102b4a;
  --accent: #b78a35;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.8;
}

body {
  margin: 0;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

.site-header {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-bottom: 3px solid var(--accent);
}

.site-header__inner,
.site-footer__inner,
.page-shell {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.site-brand {
  color: #fff;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.page-shell {
  margin-block: 40px;
  padding: clamp(24px, 5vw, 52px);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgb(16 43 74 / 7%);
}

h1,
h2 {
  line-height: 1.45;
}

h1 {
  margin: 0 0 28px;
  padding-bottom: 16px;
  font-size: clamp(26px, 5vw, 36px);
  border-bottom: 2px solid var(--brand);
}

h2 {
  margin: 36px 0 12px;
  font-size: clamp(20px, 3.5vw, 25px);
}

p,
ul {
  margin-block: 0 18px;
}

ul {
  padding-left: 1.4em;
}

.lead {
  font-size: 17px;
}

.note {
  padding: 16px 18px;
  color: var(--muted);
  background: var(--soft);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}

.database-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.database-card {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.database-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.form-embed {
  width: 100%;
  margin-block: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.form-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.form-placeholder {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: var(--soft);
}

.site-footer {
  color: #dce4ee;
  background: #111d2c;
}

.site-footer__inner {
  padding-block: 28px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.site-footer a {
  color: #fff;
  font-size: 13px;
}

.site-footer small {
  font-size: 12px;
}

@media (max-width: 680px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 16px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-shell {
    width: min(100% - 20px, 920px);
    margin-block: 20px;
    border-radius: 10px;
  }

  .database-list {
    grid-template-columns: 1fr;
  }
}
