:root {
  --bg1: #f8f4ff;
  --bg2: #f5f9ff;
  --bg3: #ede4ff;
  --card: rgba(255, 255, 255, 0.97);
  --border: #ece6ff;
  --text: #2a2438;
  --muted: #7a6e95;
  --accent1: #f2ecff;
  --accent2: #ddfbf6;
  --accentBorder: #beacef;
  --chipBg: #f4eeff;
  --chipBorder: #e8deff;
  --chipText: #63558a;
  --infoBg: #f5fffc;
  --infoBorder: #d7f3ea;
  --warnBg: #fffaf6;
  --warnBorder: #f2dfcf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--text);
  background: linear-gradient(
    180deg,
    var(--bg1) 0%,
    var(--bg2) 68%,
    #f6f8ff 86%,
    var(--bg3) 100%
  );
}

img {
  max-width: 100%;
  height: auto;
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.section-wrap {
  position: relative;
  margin-top: 22px;
  isolation: isolate;
}

.section-wrap > .shadow {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 0;
  bottom: -8px;
  border-radius: 30px;
  background: rgba(214, 202, 255, 0.14);
  z-index: -1;
  pointer-events: none;
}

.section-in {
  position: relative;
  z-index: 1;
  padding: 42px 38px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(214, 204, 255, 0.55);
  box-shadow: 0 12px 34px rgba(145, 126, 214, 0.05);
}

.section-title {
  margin: 0 0 25px;
  text-align: center;
  font-size: 35px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #211942;
  font-weight: 900;
}

.section-sub {
  margin-top: 14px;
  text-align: center;
  font-size: 17px;
  line-height: 1.9;
  color: #786e96;
}

.card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chipBg);
  color: var(--chipText);
  border: 1px solid var(--chipBorder);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #dff7ff 0%, #efe6ff 100%);
  color: #221a45;
  border: 1px solid #cfc2ff;
  box-shadow: 0 10px 24px rgba(180, 159, 255, 0.18);
}

.btn-secondary {
  background: #fff;
  color: #6e5ab8;
  border: 1px solid rgba(207, 194, 255, 0.85);
}

.site-footer {
  max-width: 1200px;
  margin: 34px auto 22px;
}

.site-footer .section-wrap {
  margin-top: 0;
  width: 100%;
}

.site-footer__inner.section-in {
  padding: 22px 28px;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  background: transparent;
  padding: 0;
}

.site-footer__nav a {
  color: #5f5188;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__nav a + a::before {
  content: "/";
  margin-right: 20px;
  color: #b7acd9;
}

.legal-page {
  display: grid;
  gap: 18px;
}

.legal-block {
  background: #fff;
  border: 1px solid #e3d9ff;
  border-radius: 18px;
  padding: 20px;
}

.legal-block h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: #241d35;
}

.legal-block p,
.legal-block li,
.legal-block dd,
.legal-block dt {
  font-size: 14px;
  line-height: 1.9;
}

.legal-block p,
.legal-block li,
.legal-block dd {
  color: var(--muted);
}

.legal-block ul {
  margin: 0;
  padding-left: 1.2em;
}

.legal-table {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px 18px;
}

.legal-table dt {
  color: #5d4c7a;
  font-weight: 900;
}

.legal-table dd {
  margin: 0;
}

@media (max-width: 900px) {
  .page {
    padding: 18px 14px 0;
  }

  .section-in {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .section-wrap > .shadow {
    top: 8px;
    left: 8px;
    bottom: -6px;
    border-radius: 24px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .section-sub {
    font-size: 14px;
    line-height: 1.8;
  }

  .site-footer__nav a + a::before {
    margin-right: 14px;
  }

  .site-footer__inner.section-in {
    padding: 18px 16px;
  }

  .site-footer__nav {
    gap: 8px 14px;
  }

  .site-footer__nav a {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .legal-table {
    grid-template-columns: 1fr;
  }
}