.site-header,
.site-footer {
  --green: #13866c;
  --muted: #586c65;
  --line: #d7e6df;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: #263f39;
  line-height: 1.5;
  background: #f8f9fa;
  flex-shrink: 0;
}
.site-header {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  min-height: 88px;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #edf3ef;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  display: block;
  flex-shrink: 0;
}
.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
}
.site-header nav a {
  text-decoration: none;
  padding-block: 12px;
}
.site-header nav a:hover { color: var(--green); }
.site-header :is(a, button):focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}
.menu { display: none; }
.site-footer {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-block: 40px;
}
.site-footer .brand { font-size: 19px; }
.site-footer p {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
}
.footer-meta {
  text-align: right;
  max-width: 470px;
  font-size: 11px;
  line-height: 1.8;
}
.footer-meta a { display: block; text-underline-offset: 4px; }
.footer-meta small {
  display: block;
  margin-top: 18px;
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .site-header { padding-inline: 32px; gap: 22px; }
  .brand { font-size: 20px; }
  .site-header nav { gap: 18px; font-size: 13px; }
  .site-footer { width: calc(100% - 64px); }
}
@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 10px 20px; gap: 14px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand img { width: 30px; height: 30px; }
  .menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    height: 44px;
    width: 44px;
    padding: 10px;
    background: white;
    border: 0;
    cursor: pointer;
  }
  .menu span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--green);
    transition: transform 0.2s;
  }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    box-shadow: 0 12px 16px #263f3910;
  }
  .site-header nav.open { display: grid; }
  .site-footer { width: calc(100% - 40px); display: block; padding-block: 32px 112px; }
  .site-footer p { margin-top: 12px; }
  .footer-meta { text-align: left; margin-top: 22px; }
  .footer-meta a { font-size: 10px; }
}
@media (max-width: 359px) {
  .site-header { padding-inline: 16px; }
  .site-footer { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .menu span { transition: none; }
}
