:root {
  color-scheme: light;
  --color-background: #f8faf9;
  --color-surface: #ffffff;
  --color-text: #17211d;
  --color-muted: #64706b;
  --color-border: #d9e1dc;
  --color-accent-strong: #0b5f59;
  --shadow-surface: 0 18px 48px rgba(23, 33, 29, 0.08);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-background);
  color: var(--color-text);
}

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.75;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 32px 20px 50px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.site-brand {
  grid-column: 2;
  justify-self: center;
  color: var(--color-accent-strong);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.language-control {
  display: grid;
  grid-column: 3;
  justify-self: end;
}

.language-select {
  min-width: 116px;
  min-height: 32px;
  padding: 4px 28px 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 400;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.intro-card,
.document-card,
.notice-card {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-surface);
}

.intro-text {
  margin: 0;
  color: #34413c;
}

.intro-text + .intro-text {
  margin-top: 10px;
}

.document-heading {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.intro-body {
  margin: 0;
  color: var(--color-muted);
}

.updated-at {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.section-list {
  display: grid;
  gap: 22px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
}

.legal-section {
  display: grid;
  gap: 8px;
}

.section-heading {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.section-body {
  margin: 0;
  color: #34413c;
}

.section-body + .section-body {
  margin-top: 8px;
}

.support-contact {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
}

.contact-link {
  color: var(--color-accent-strong);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.intro {
  margin: 0 0 24px;
  color: var(--color-muted);
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-border);
}

.notice-table th,
.notice-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.notice-table th {
  width: 34%;
  padding-right: 22px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.notice-table td {
  color: var(--color-text);
}

.empty-value {
  min-height: 1.75em;
}

.note {
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-footer {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-top: auto;
  padding-top: 32px;
  color: var(--color-muted);
  font-size: 0.86rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.footer-link {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-text);
}

.footer-copyright {
  margin: 0;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 22px 14px 50px;
  }

  .site-header {
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
  }

  .notice-table,
  .notice-table tbody,
  .notice-table tr,
  .notice-table th,
  .notice-table td {
    display: block;
    width: 100%;
  }

  .notice-table th {
    padding: 14px 0 4px;
    border-bottom: 0;
  }

  .notice-table td {
    padding: 0 0 14px;
  }
}
