/* 自動生成（static/ → wordpress/build_theme.py）。このファイルは直接直さず、static/ を直して作り直す */
/* =========================================================
   フッターの法的ページ（privacy.html・company.html・tokushoho.html）
   detail.css（詳細ページ）の後に読む。冒頭は詳細ページと同じ形で写真なし、本文は白い箱に文字だけ。
   Figma：90_法的プライバシー_1440 を基準に、1024／768／375／425／320／2560。
   事業者情報と特商法は、プライバシーポリシーと同じ形で中身を入れ替えたもの（Figmaは作らない）
   ========================================================= */

/* ---------- 01 ページ冒頭 ---------- */
.page-legal .dt-top__underline {
  width: calc(100% + 8px);
}

/* 2行にする見出し（スマホ）の下線は2行目の下。PCは見出し全体の下 */
.lg-title__last {
  position: relative;
  display: inline-block;
}

.lg-title__underline-sp {
  display: none;
}

.page-legal .dt-top__lead {
  margin-top: 40px;
}

/* ---------- 02 本文 ---------- */
.lg-body {
  padding: 96px 0 120px;
  background: #e9f5fb;
}

.lg-box {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: min(800px, 100%);
  margin-inline: auto;
  padding: 64px 72px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--bg-white);
  box-shadow: 0 8px 24px rgba(13, 51, 102, 0.06);
}

.lg-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 見出し：青の縦線つき */
.lg-item__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  line-height: 32px;
}

.lg-item__title::before {
  content: "";
  flex: none;
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: #0a9bfa;
}

.lg-item p,
.lg-list li,
.lg-table dd {
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 0.02em;
}

.lg-box a:not(.btn-line) {
  color: inherit;
  text-underline-offset: 3px;
}

.lg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-list li {
  position: relative;
  padding-left: 18px;
}

.lg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a9bfa;
}

.lg-date {
  color: var(--navy-600);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0.02em;
  text-align: right;
  opacity: 0.75;
}

/* 表（事業者情報・特商法）：項目｜内容。文の途中で変に折り返さないように、文節で折り返す */
.lg-table {
  margin: -20px 0;
}

.lg-table > div {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #dbe5f0;
}

.lg-table > div:last-child {
  border-bottom: 0;
}

.lg-table dt {
  font-size: 15px;
  font-weight: 900;
  line-height: 30px;
}

.lg-table dd {
  margin: 0;
  word-break: auto-phrase;
}

.lg-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

.lg-contact + .lg-contact {
  margin-top: 8px;
}

.lg-contact > span {
  min-width: 4.5em;
}

.lg-line {
  margin: 4px 0;
}

/* =========================================================
   768〜1023px
   ========================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-legal .dt-top__underline {
    left: -3px;
    width: calc(100% + 6px);
  }

  .page-legal .dt-top__lead {
    margin-top: 24px;
  }

  /* 特商法の見出しは60だと幅に入らないので56 */
  .page-tokushoho .dt-top__title {
    font-size: 56px;
  }

  .lg-body {
    padding: 80px 0 96px;
  }

  .lg-box {
    gap: 40px;
    width: 100%;
    padding: 48px;
  }

  .lg-item {
    gap: 14px;
  }

  .lg-item__title {
    font-size: 20px;
    line-height: 30px;
  }

  .lg-item__title::before {
    height: 22px;
  }

  .lg-item p,
  .lg-list li,
  .lg-table dd {
    font-size: 15px;
    line-height: 28px;
  }

  .lg-list {
    gap: 6px;
  }

  .lg-list li::before {
    top: 11px;
  }

  .lg-date {
    font-size: 13px;
  }

  .lg-table > div {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .lg-table dt {
    font-size: 14px;
    line-height: 28px;
  }
}

/* =========================================================
   スマホ（〜767px）：見出しは2行
   ========================================================= */
@media (max-width: 767px) {
  .page-legal .dt-top__title {
    line-height: 68px;
  }

  .page-tokushoho .dt-top__title {
    font-size: 44px;
    line-height: 60px;
  }

  .page-legal .lg-title__underline-pc {
    display: none;
  }

  .page-legal .lg-title__underline-sp {
    display: block;
    left: -3px;
    top: 50px;
    width: calc(100% + 6px);
  }

  .page-tokushoho .lg-title__underline-sp {
    top: 44px;
  }

  .page-legal .dt-top__underline {
    left: -3px;
    width: calc(100% + 6px);
  }

  .page-legal .dt-top__lead {
    margin-top: 28px;
  }

  .lg-body {
    padding: 64px 0 80px;
  }

  .lg-box {
    gap: 36px;
    padding: 36px 24px;
  }

  .lg-item {
    gap: 12px;
  }

  .lg-item__title {
    gap: 10px;
    font-size: 18px;
    line-height: 26px;
  }

  .lg-item__title::before {
    height: 20px;
  }

  .lg-item p,
  .lg-list li,
  .lg-table dd {
    font-size: 14px;
    line-height: 26px;
  }

  .lg-list {
    gap: 6px;
  }

  .lg-list li {
    padding-left: 16px;
  }

  .lg-list li::before {
    top: 10px;
  }

  .lg-date {
    font-size: 12px;
    line-height: 20px;
  }

  /* 表は項目の下に内容 */
  .lg-table {
    margin: -16px 0;
  }

  .lg-table > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 16px 0;
  }

  .lg-table dt {
    font-size: 13px;
    line-height: 22px;
    color: var(--navy-600);
  }
  /* 最終CTA：サービス紹介ページと同じ（詳細ページはボタンの下を広げているので戻す） */
  .page-legal .underwater .btn-line--md {
    margin-bottom: 0;
  }
}

/* =========================================================
   Figma 320（〜374px）
   ========================================================= */
@media (max-width: 374px) {
  .page-legal .dt-top__title {
    font-size: 44px;
    line-height: 58px;
  }

  .page-tokushoho .dt-top__title {
    font-size: 36px;
    line-height: 50px;
  }

  .page-legal .lg-title__underline-sp {
    top: 43px;
  }

  .page-tokushoho .lg-title__underline-sp {
    top: 37px;
  }

  .lg-box {
    padding: 32px 20px;
  }

  /* 特商法のラベルは18だと2行になるので15 */
  .page-tokushoho .dt-top__label {
    font-size: 15px;
  }

  /* 最終CTAの見出し：サービス紹介ページと同じ24（詳細ページは22にしている） */
  .page-legal .final-cta__title {
    font-size: 24px;
    line-height: 36px;
  }
}
