:root {
  --ink: #27231f;
  --muted: #5d4f44;
  --line: rgba(132, 101, 78, 0.18);
  --paper: #f4f0ea;
  --white: #ffffff;
  --red: #d93a3a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

.wrap {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 42px;
}

.top-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: #4f463f;
  font-weight: 800;
  text-decoration: none;
}

.top-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.language-switch {
  position: relative;
  display: inline-flex;
  margin: 0 0 22px 14px;
  align-items: center;
  vertical-align: middle;
}

.language-switch::after {
  position: absolute;
  right: 10px;
  color: #153a5b;
  content: "▾";
  font-size: 10px;
  pointer-events: none;
}

.language-switch select {
  min-width: 66px;
  min-height: 38px;
  padding: 7px 28px 7px 11px;
  border: 1px solid rgba(21, 58, 91, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #153a5b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(132, 101, 78, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(78, 58, 43, 0.1);
}

.page-header {
  padding: 34px 34px 24px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.revision-note {
  display: inline-flex;
  margin: 14px 0 0;
  padding: 5px 12px;
  border: 1px solid rgba(21, 58, 91, 0.16);
  border-radius: 999px;
  color: #153a5b;
  background: rgba(21, 58, 91, 0.06);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.45;
  letter-spacing: 0;
}

p {
  margin: 0 0 12px;
}

.policy-body {
  padding: 4px 34px 34px;
}

.policy-section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.policy-section:first-child {
  border-top: 0;
}

.policy-list {
  margin: 10px 0 14px;
  padding-left: 1.4em;
}

.policy-list li {
  margin: 6px 0;
}

.commerce-list {
  margin: 0;
}

.commerce-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.commerce-row:first-child {
  border-top: 0;
}

.commerce-term,
.commerce-description {
  padding: 20px 24px;
}

.commerce-term {
  margin: 0;
  background: rgba(245, 239, 232, 0.9);
  color: var(--muted);
  font-weight: 800;
}

.commerce-description {
  margin: 0;
  background: rgba(255, 255, 255, 0.74);
  color: #2f2a25;
  white-space: pre-line;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  width: min(960px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #555;
  font-size: 0.9rem;
  font-weight: 800;
}

.social-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-label {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0.72;
  white-space: nowrap;
}

.social-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(21, 58, 91, 0.18);
  border-radius: 999px;
  color: #153a5b;
  background: rgba(21, 58, 91, 0.055);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.social-icon.is-pending {
  cursor: default;
}

@media (max-width: 720px) {
  .wrap {
    padding-top: 34px;
  }

  .language-switch {
    display: flex;
    width: max-content;
    margin: -8px 0 18px;
  }

  .page-header {
    padding: 26px 22px 20px;
  }

  .policy-body {
    padding: 0 22px 26px;
  }

  .policy-section {
    padding: 22px 0;
  }

  .commerce-row {
    grid-template-columns: 1fr;
  }

  .commerce-term,
  .commerce-description {
    padding: 14px 20px;
  }
}
