@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800;900&display=swap");

:root {
  color-scheme: light;
  --bg: #fff8ea;
  --surface: #ffffff;
  --line: #cfc3a9;
  --text: #172018;
  --muted: #465246;
  --navy: #0f5b3f;
  --navy-dark: #073a27;
  --gold: #9a711b;
  --green-soft: #eef7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fffdf5 0, var(--bg) 260px);
  color: var(--text);
  font-family: "Noto Sans JP", Meiryo, "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

a {
  color: var(--navy);
}

header {
  background: var(--navy);
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid var(--navy-dark);
  color: #fff;
}

.topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  overflow: visible;
}

.brand-link:focus-visible {
  outline: 3px solid rgba(255,255,255,.78);
  outline-offset: 4px;
}

.brand-image {
  display: block;
  width: auto;
  height: 58px;
  max-width: min(360px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.brand.has-logo .brand-mark,
.brand.has-logo .brand-copy {
  display: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.16);
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  display: block;
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 800;
}

.header-sub {
  color: #d8ead8;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 1px;
}

.header-link {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 36px;
}

.legal-card {
  background: var(--surface);
  border: 2px solid var(--navy);
  border-radius: 3px;
  padding: 22px;
  box-shadow: 0 2px 0 rgba(15, 91, 63, .06);
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.35;
}

h2 {
  margin: 26px 0 8px;
  border-left: 5px solid var(--gold);
  padding-left: 10px;
  font-size: 18px;
}

p {
  margin: 8px 0;
}

ul {
  margin: 8px 0 8px 1.4em;
  padding: 0;
}

li {
  margin: 4px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: #fff;
}

th,
td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--green-soft);
  color: var(--navy);
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-weight: 500;
}

.meta {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  background: #fffdf5;
  border: 1px solid var(--line);
  padding: 12px;
  margin: 14px 0;
}

footer {
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 8px;
  font-weight: 700;
}

.footer-links a {
  color: var(--navy);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  margin: 0;
  text-align: center;
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-link {
    height: 52px;
  }

  .brand-image {
    height: 52px;
    max-width: min(74vw, 320px);
  }

  .legal-card {
    padding: 16px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
