.site-info {
  margin-top: 32px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid #ccc;
}

.site-info > section + section,
.site-info > details + section {
  margin-top: 20px;
}

.site-info h2 {
  font-size: 1.1em;
}

.site-info-guidance {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #c8d1d8;
  border-radius: 8px;
  background: #f7f9fa;
}

.site-info-guidance summary {
  cursor: pointer;
  font-weight: 600;
}

.site-info-guidance summary::after {
  float: right;
  margin-left: 12px;
  color: #355d85;
  content: "開く";
  font-size: 0.9em;
  font-weight: 400;
}

.site-info-guidance[open] summary::after {
  content: "閉じる";
}

.site-info-guidance h3 {
  margin-bottom: 4px;
  font-size: 1em;
}

.site-info-guidance ul {
  padding-left: 1.4em;
}

.site-info-guidance li + li {
  margin-top: 8px;
}

.donation-shortcut {
  position: fixed;
  top: 60px;
  right: 14px;
  z-index: 10;
  padding: 8px 12px;
  border: 1px solid #355d85;
  border-radius: 999px;
  background: #fff;
  color: #174d7a;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.donation-shortcut:hover,
.donation-shortcut:focus-visible {
  background: #eaf4fb;
}

.privacy-policy-shortcut {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 12;
}

.privacy-policy-shortcut > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #355d85;
  border-radius: 999px;
  background: #fff;
  color: #174d7a;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  font-size: 0.9rem;
  font-weight: 600;
}

.privacy-policy-shortcut > summary::-webkit-details-marker {
  display: none;
}

.privacy-policy-shortcut > summary::after {
  margin-left: 8px;
  color: #355d85;
  content: "開く";
  font-size: 0.9em;
  font-weight: 400;
}

.privacy-policy-shortcut[open] > summary::after {
  content: "閉じる";
}

.privacy-policy-shortcut > summary:hover,
.privacy-policy-shortcut > summary:focus-visible {
  background: #eaf4fb;
}

.privacy-policy-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  overflow-y: auto;
  width: min(440px, calc(100vw - 28px));
  max-height: min(72vh, 680px);
  padding: 16px;
  border: 1px solid #c8d1d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
  line-height: 1.6;
}

.privacy-policy-panel h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.privacy-policy-panel h3 {
  margin: 18px 0 6px;
  font-size: 1rem;
}

.privacy-policy-panel p {
  margin: 8px 0;
}

#donation {
  scroll-margin-top: 72px;
}

.site-info nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-info #feedbackXLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-info #feedbackXLink img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-info button {
  margin: 8px 0;
}

.site-info #donationTotal {
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

#siteConfigError:not(:empty) {
  margin-top: 12px;
  color: #a82626;
}
