@charset "UTF-8";

/* =========================================
   Terms of Service Page Layout
   お問い合わせ・プライバシーポリシーページと統一
   シャドウ・カード型の囲いは使用しない
   ========================================= */

.p-terms {
  padding: 14rem 0 10rem;
  background-color: var(--color-white);
}

.p-terms__header {
  max-width: 90rem;
  margin: 0 auto 6.4rem;
  text-align: center;
}

.p-terms__updated {
  margin: 2.4rem 0 0;
  color: var(--color-text-main);
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: right;
}

.p-terms__lead {
  max-width: 78rem;
  margin: 2.4rem auto 0;
  color: var(--color-text-main);
  font-size: 1.6rem;
  line-height: 2;
  text-align: left;
}

.p-terms__lead > :first-child {
  margin-top: 0;
}

.p-terms__lead > :last-child {
  margin-bottom: 0;
}

.p-terms__lead p {
  margin: 0 0 1.6rem;
}

/* 本文全体。外枠・背景色・シャドウは付けない */
.p-terms__content {
  max-width: 90rem;
  margin: 0 auto;
  border-top: 1px solid var(--color-border-gray);
}

/* =========================================
   Terms Sections
   ========================================= */

.p-terms__section {
  display: grid;
  grid-template-columns: minmax(22rem, 28rem) minmax(0, 1fr);
  column-gap: 5.6rem;
  padding: 4.8rem 0;
  border-bottom: 1px solid var(--color-border-gray);
}

/* =========================================
   Section Title
   ========================================= */

.p-terms__section-title {
  position: relative;
  align-self: start;
  margin: 0;
  padding-left: 1.8rem;
  color: var(--color-text-dark);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
}

/* 見出しの先頭1行分だけ表示する短いアクセント線 */
.p-terms__section-title::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 0.3rem;
  height: 1.2em;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--color-accent-purple) 0%,
    var(--color-accent-blue) 100%
  );
  content: "";
}

/* =========================================
   Section Body
   ========================================= */

.p-terms__section-body {
  min-width: 0;
  color: var(--color-text-main);
  font-size: 1.6rem;
  line-height: 2;
  overflow-wrap: anywhere;
}

.p-terms__section-body > :first-child {
  margin-top: 0;
}

.p-terms__section-body > :last-child {
  margin-bottom: 0;
}

.p-terms__section-body p {
  margin: 0 0 1.6rem;
}

/* =========================================
   Lists
   ========================================= */

.p-terms__section-body ul,
.p-terms__section-body ol {
  display: grid;
  gap: 0.8rem;
  margin: 1.6rem 0;
  padding-left: 2.2rem;
}

.p-terms__section-body ul {
  list-style: disc;
}

.p-terms__section-body ol {
  list-style: decimal;
}

.p-terms__section-body li {
  padding-left: 0.4rem;
}

.p-terms__section-body li::marker {
  color: var(--color-accent-blue);
}

/* =========================================
   Links
   ========================================= */

.p-terms__lead a,
.p-terms__section-body a {
  color: var(--color-accent-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: opacity 0.3s;
}

@media (hover: hover) {
  .p-terms__lead a:hover,
  .p-terms__section-body a:hover {
    opacity: 0.7;
  }
}

/* =========================================
   Responsive
   Tablet & Smartphone：1024px以下
   ========================================= */

@media screen and (max-width: 1024px) {
  .p-terms {
    padding: 10rem 0 8rem;
  }

  .p-terms__header,
  .p-terms__content {
    margin-right: 3.2rem;
    margin-left: 3.2rem;
  }

  .p-terms__header {
    margin-bottom: 4.8rem;
  }

  .p-terms__updated {
    font-size: 1.3rem;
  }

  .p-terms__lead {
    font-size: 1.4rem;
  }

  .p-terms__section {
    grid-template-columns: 20rem minmax(0, 1fr);
    column-gap: 3.2rem;
    padding: 4rem 0;
  }

  .p-terms__section-title {
    font-size: 1.7rem;
  }

  .p-terms__section-body {
    font-size: 1.4rem;
  }
}

/* =========================================
   Responsive
   Smartphone：767px以下
   ========================================= */

@media screen and (max-width: 767px) {
  .p-terms {
    padding: 9rem 0 6rem;
  }

  .p-terms__header,
  .p-terms__content {
    margin-right: 1.6rem;
    margin-left: 1.6rem;
  }

  .p-terms__header {
    margin-bottom: 3.2rem;
  }

  .p-terms__updated {
    margin-top: 2rem;
    font-size: 1.2rem;
    text-align: left;
  }

  .p-terms__lead {
    margin-top: 1.6rem;
    font-size: 1.3rem;
    line-height: 1.8;
  }

  .p-terms__lead p {
    margin-bottom: 1.2rem;
  }

  .p-terms__section {
    display: block;
    padding: 3.2rem 0;
  }

  .p-terms__section-title {
    margin-bottom: 1.6rem;
    padding-left: 1.4rem;
    font-size: 1.6rem;
  }

  .p-terms__section-title::before {
    top: 0.2em;
    width: 0.25rem;
    height: 1.2em;
  }

  .p-terms__section-body {
    font-size: 1.3rem;
    line-height: 1.9;
  }

  .p-terms__section-body p {
    margin-bottom: 1.2rem;
  }

  .p-terms__section-body ul,
  .p-terms__section-body ol {
    gap: 0.6rem;
    margin: 1.2rem 0;
    padding-left: 2rem;
  }
}
