/* ┌─────────────────────────────────────────┐
   │ プライバシーポリシー                     │
   └─────────────────────────────────────────┘ */
.privacy {
  position: relative;
  overflow: clip; /* hidden だと目次の sticky が効かなくなる */
  padding: 16rem max(2rem, calc((100vw - 112rem) / 2)) 12rem;
  background:
    radial-gradient(circle at 88% 6%, rgba(45, 232, 216, 0.14), transparent 30%),
    radial-gradient(circle at 6% 30%, rgba(37, 71, 216, 0.08), transparent 32%),
    #f5f7fc;
}

/* 背景に大きく薄く置く英字 */
.privacy::before {
  content: "PRIVACY";
  position: absolute;
  top: 9rem;
  right: -2rem;
  color: rgba(37, 71, 216, 0.05);
  font-family: "Inter", sans-serif;
  font-size: 16rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1em;
  pointer-events: none;
}

.privacy_hero {
  position: relative;
  margin-bottom: 8rem;
}

.privacy_label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  color: #2547d8;
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.privacy_label::before {
  content: "";
  width: 3.2rem;
  height: 2px;
  background: linear-gradient(90deg, #2547d8, #2de8d8);
}

.privacy_title {
  margin-bottom: 2.4rem;
  color: #171b20;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.3em;
}

.privacy_lead {
  max-width: 72rem;
  color: #5a6472;
  font-size: 1.5rem;
  line-height: 2.1em;
}

/* 目次と本文を横に並べる */
.privacy_inner {
  position: relative;
  display: grid;
  grid-template-columns: 22rem minmax(0, 1fr);
  align-items: start;
  gap: 6rem;
}

/* 目次：スクロールしても左に残る */
.privacy_toc {
  position: sticky;
  top: 12rem;
  padding: 2.8rem 2.4rem;
  border: 1px solid rgba(37, 71, 216, 0.12);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(1rem);
}

.privacy_toc_title {
  margin-bottom: 1.6rem;
  color: #2547d8;
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.privacy_toc_list {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  counter-reset: toc;
}

.privacy_toc_list a {
  display: flex;
  align-items: baseline; /* 番号と文字の下端をそろえる */
  gap: 1rem;
  padding: 0.6rem 0;
  color: #3e4e63;
  font-size: 1.35rem;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.privacy_toc_list a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  color: #9aa8c8;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
}

.privacy_toc_list a:hover {
  color: #2547d8;
  transform: translateX(0.4rem);
}

/* 各項目のカード */
.privacy_list {
  display: grid;
  gap: 2rem;
}

.privacy_item {
  position: relative;
  overflow: hidden;
  padding: 4rem 4.4rem 4rem 12rem;
  border: 1px solid rgba(37, 71, 216, 0.1);
  border-radius: 2.4rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2rem 5rem rgba(29, 55, 120, 0.06);
  scroll-margin-top: 12rem;
}

/* カードの左端の細い色線 */
.privacy_item::before {
  content: "";
  position: absolute;
  top: 3.2rem;
  bottom: 3.2rem;
  left: 0;
  width: 0.4rem;
  border-radius: 0 0.4rem 0.4rem 0;
  background: linear-gradient(180deg, #2547d8, #2de8d8);
}

/* 大きな番号 */
.privacy_number {
  position: absolute;
  top: 3.2rem;
  left: 3.6rem;
  background: linear-gradient(135deg, #2547d8, #2de8d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Inter", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1em;
}

.privacy_item_title {
  margin-bottom: 1.4rem;
  color: #171b20;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.5em;
}

.privacy_text {
  color: #5a6472;
  font-size: 1.45rem;
  line-height: 2em;
}

.privacy_points {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
  list-style: none;
}

.privacy_points li {
  position: relative;
  padding-left: 2rem;
  color: #3e4e63;
  font-size: 1.4rem;
  line-height: 1.9em;
}

.privacy_points li::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 0.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #2de8d8;
}

/* お問い合わせ窓口の表 */
.privacy_desk {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.2rem 2rem;
  margin-top: 2rem;
  padding: 2.4rem 2.8rem;
  border-radius: 1.6rem;
  background: #f1f5ff;
  font-size: 1.4rem;
  line-height: 1.8em;
}

.privacy_desk dt {
  color: #2547d8;
  font-weight: 800;
}

.privacy_desk dd {
  color: #3e4e63;
}

.privacy_date {
  margin-top: 1.2rem;
  color: #8a94a3;
  font-size: 1.3rem;
  text-align: right;
}

/* ┌─────────────────────────────────────────┐
   │ スマホ                                   │
   └─────────────────────────────────────────┘ */
@media screen and (max-width: 699.98px) {
  .privacy {
    padding: 11rem 2rem 8rem;
  }

  .privacy::before {
    top: 7rem;
    font-size: 7rem;
  }

  .privacy_hero {
    margin-bottom: 4rem;
  }

  .privacy_title {
    font-size: 2.8rem;
  }

  .privacy_lead {
    font-size: 1.4rem;
  }

  /* PCだけの改行はスマホでは消す */
  .privacy_lead .desktop_break {
    display: none;
  }

  .privacy_inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .privacy_toc {
    position: static;
    padding: 2.2rem 2rem;
  }

  .privacy_toc_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.2rem;
  }

  .privacy_toc_list a {
    font-size: 1.25rem;
  }

  .privacy_item {
    padding: 7.2rem 2.2rem 2.8rem;
    border-radius: 2rem;
  }

  .privacy_number {
    top: 2.4rem;
    left: 2.2rem;
    font-size: 3.2rem;
  }

  .privacy_item::before {
    top: 2.4rem;
    bottom: auto;
    height: 3.2rem;
  }

  .privacy_item_title {
    font-size: 1.8rem;
  }

  .privacy_text {
    font-size: 1.35rem;
  }

  .privacy_desk {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 2rem;
  }

  .privacy_desk dd {
    margin-bottom: 1rem;
  }
}
