/* 本文は中央の1080pxカラムにそろえる（見出しも同じ幅） */
.pg-narrow .container,
.lg-main,
.hp-main {
  max-width: calc(1080px + 64px);
}
/* --- 規約・ポリシー --- */
.lg-main {
  padding-top: 28px;
  padding-bottom: 72px;
}
.lg-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 36px;
}
.lg-tabs a {
  flex: none;
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.lg-tabs a:hover {
  color: var(--text);
}
.lg-tabs a.on {
  background: var(--text);
  color: var(--bg);
}
.lg-body {
  max-width: none;
}
.lg-body.has-toc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
}
.lg-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
  scrollbar-width: thin;
}
.lg-toc b {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.lg-toc nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.lg-toc a {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.lg-toc a:hover {
  color: var(--text);
}
.lg-toc a.on {
  color: var(--text);
  font-weight: 700;
}
.lg-toc a.on::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent);
}
.lg-doc {
  font-size: 15px;
  line-height: 2;
}
.lg-lead {
  font-size: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.lg-doc section {
  padding: 32px 0 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.lg-doc h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}
.lg-doc h2 span {
  flex: none;
  font-size: 13px;
  color: var(--accent-dk);
  font-weight: 700;
}
[data-theme="dark"] .lg-doc h2 span {
  color: var(--accent);
}
.lg-doc p + p {
  margin-top: 12px;
}
.lg-contact,
.lg-table {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--border);
}
.lg-contact dt,
.lg-contact dd,
.lg-table dt,
.lg-table dd {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.8;
}
.lg-contact dt,
.lg-table dt {
  font-weight: 700;
  padding-right: 24px;
}
.lg-table {
  grid-template-columns: 280px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lg-table dt {
  background: var(--surface-2);
  padding-left: 24px;
  font-size: 14px;
}
.lg-table dd {
  padding-left: 24px;
  padding-right: 24px;
}
.lg-table dt:last-of-type,
.lg-table dd:last-of-type {
  border-bottom: 0;
}
/* --- ヘルプセンター --- */
.hp-search {
  position: relative;
  max-width: 680px;
  margin-top: 20px;
}
.hp-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.hp-search input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 50px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.hp-search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.hp-main {
  padding-top: 32px;
  padding-bottom: 72px;
}
.hp-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.hp-cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.hp-cat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hp-cat svg {
  width: 24px;
  height: 24px;
  color: var(--accent-dk);
  margin-bottom: 6px;
}
[data-theme="dark"] .hp-cat svg {
  color: var(--accent);
}
.hp-cat b {
  font-size: 14px;
  line-height: 1.45;
}
.hp-cat small {
  font-size: 12px;
  color: var(--muted);
}
.hp-sec {
  padding-top: 28px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.hp-sec h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.hp-sec h2 svg {
  width: 22px;
  height: 22px;
  color: var(--accent-dk);
}
[data-theme="dark"] .hp-sec h2 svg {
  color: var(--accent);
}
.hp-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hp-q + .hp-q {
  border-top: 1px solid var(--border);
}
.hp-q summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 52px 18px 20px;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.hp-q summary::-webkit-details-marker {
  display: none;
}
.hp-q summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.hp-q[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.hp-q summary:hover {
  background: var(--surface-2);
}
.hp-q summary .qi,
.hp-a::before {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  background: var(--text);
  color: var(--bg);
}
.hp-a {
  display: flex;
  gap: 14px;
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.hp-a::before {
  content: "A";
  background: var(--accent);
  color: #fff;
}
.hp-q mark {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: inherit;
  border-radius: 3px;
}
.hp-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}
.hp-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.hp-contact b {
  font-size: 17px;
}
.hp-contact p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 1080px) {
  .lg-body.has-toc {
    grid-template-columns: 1fr;
  }
  .lg-toc {
    display: none;
  }
  .hp-cats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .lg-tabs {
    margin: 0 -16px 24px;
    padding: 0 16px;
  }
  .lg-doc {
    font-size: 14px;
  }
  .lg-doc h2 {
    font-size: 17px;
    flex-direction: column;
    gap: 2px;
  }
  .lg-contact,
  .lg-table {
    grid-template-columns: 1fr;
  }
  .lg-table dt {
    border-bottom: 0;
    padding: 12px 16px 4px;
  }
  .lg-table dd {
    padding: 4px 16px 14px;
    font-size: 14px;
  }
  .lg-contact dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .hp-search input {
    height: 50px;
    font-size: 14px;
  }
  .hp-cats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hp-cat {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .hp-cat svg {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: none;
  }
  .hp-cat b {
    font-size: 13px;
  }
  .hp-cat small {
    margin-left: auto;
    flex: none;
  }
  .hp-q summary {
    font-size: 14px;
    padding: 16px 44px 16px 16px;
    gap: 10px;
  }
  .hp-a {
    padding: 0 16px 16px;
  }
  .hp-contact {
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
  }
}

/* --- 規約本文：項・号 --- */
.lg-doc h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 4px;
  color: var(--muted);
}
.lg-doc ol,
.lg-doc ul {
  margin: 10px 0 0;
  padding-left: 1.6em;
}
.lg-doc ol {
  list-style: decimal;
}
.lg-doc li {
  padding-left: 0.2em;
  margin-top: 6px;
}
.lg-doc li::marker {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.9em;
}
/* 利用規約：4つの規約（FAMILY／WEB ACADEMY／Tools／ACADEMY）の見出しと、・箇条書き／(1)番号 */
.lg-doc .lg-part + .lg-part {
  margin-top: 56px;
  border-top: 1px solid var(--border);
}
.lg-doc .lg-part:first-child {
  padding-top: 0;
}
.lg-doc .lg-part-ttl {
  display: block;
  font-size: 23px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  margin-bottom: 0;
}
.lg-doc .lg-part ul {
  list-style: disc;
}
.lg-doc ol.lg-paren {
  list-style: none;
  counter-reset: lgp;
  padding-left: 2.2em;
}
.lg-doc ol.lg-paren > li {
  counter-increment: lgp;
  position: relative;
}
.lg-doc ol.lg-paren > li::before {
  content: "(" counter(lgp) ")";
  position: absolute;
  right: 100%;
  margin-right: 0.4em;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.9em;
}
.lg-lead-s {
  font-size: 15px;
  border-bottom: 0;
  padding-bottom: 20px;
}
.lg-ga {
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.8;
}
.lg-ga dt {
  font-weight: 700;
}
.lg-ga dd span {
  display: block;
}
.lg-contact {
  margin-top: 16px;
}
/* --- ヘルプ：回答本文 --- */
.hp-sh {
  margin-bottom: 14px;
}
.hp-sh h2 {
  margin-bottom: 4px;
}
.hp-sh p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.hp-a {
  color: var(--text);
}
.hp-ab {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.95;
}
.hp-ab > * + * {
  margin-top: 10px;
}
.hp-ab h4 {
  font-size: 14px;
  font-weight: 700;
  margin-top: 18px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.hp-ab ol,
.hp-ab ul {
  padding-left: 1.5em;
}
.hp-ab ol {
  list-style: decimal;
}
.hp-ab ul {
  list-style: disc;
}
.hp-ab li + li {
  margin-top: 4px;
}
.hp-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hp-cards span {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--bg);
}
.hp-env {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.hp-env dl {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
}
.hp-env dt {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}
.hp-env dd {
  font-size: 14px;
}
.hp-tbl {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.hp-tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}
.hp-tbl th,
.hp-tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.hp-tbl th {
  background: var(--surface-2);
  font-weight: 700;
  white-space: nowrap;
}
.hp-tbl td:first-child,
.hp-tbl td:last-child {
  white-space: nowrap;
  font-weight: 700;
}
.hp-tbl td:last-child {
  text-align: right;
  font-family: var(--font-en);
}
.hp-tbl tr:last-child td {
  border-bottom: 0;
}
.hp-btn {
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
}
.hp-more {
  display: inline-flex;
  font-weight: 700;
  font-size: 13px;
}
.hp-more:hover {
  color: var(--accent-dk);
}
.hp-catfoot {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.hp-q:target summary,
.hp-q[open] summary {
  background: var(--surface-2);
}
.hp-cats[hidden],
.hp-sec[hidden],
.hp-q[hidden],
.hp-empty[hidden] {
  display: none;
}
