@charset "UTF-8";

/* タイポグラフィ・色の基準は styles.css（index）に合わせる */

main,
main * {
  margin: 0;
  padding: 0;
}

body.page-legal::before {
  display: none;
}

main {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-ink);
}

main h1,
main .content-title {
  max-width: none;
}

main h1,
main h2,
main h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
}

a {
  color: var(--color-green);
  text-decoration: none;
}

a:hover {
  opacity: 0.72;
  transition: opacity 0.3s;
}

.site-header a,
.page-footer a {
  text-decoration: none;
}

.site-header a:hover,
.page-footer .footer-item a:hover {
  opacity: 1;
}

.page-footer .page-footer-copy,
.page-footer .page-footer-copy small {
  font-size: 12px;
  line-height: 1.4;
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.hover-effect:hover {
  opacity: 0.72;
  transition: opacity 0.3s;
}

.content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 64px 32px;
}

.content-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.content-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--color-ink);
}

.content-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin: 8px auto 0;
  padding: 0 4px;
  background: var(--gradient-rule);
  border-radius: 999px;
}

.content-text {
  max-width: 800px;
  color: var(--color-ink);
}

.content-section {
  margin-bottom: 56px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  display: block;
  position: relative;
  margin-bottom: 16px;
  padding-left: 8px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-ink);
  border-left: 4px solid var(--color-purple);
}

.section-text {
  color: var(--color-ink);
}

.section-text a {
  color: var(--color-green);
}

.section-list {
  list-style-type: none;
  padding-left: 16px;
}

.section-item {
  text-indent: -16px;
  color: var(--color-ink);
}

ul.section-list li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 8px 6px 4px;
  border-radius: 50%;
  background-color: var(--color-muted);
}

.sp-only {
  display: none;
}

.content-date {
  margin-top: 32px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.btn-list {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.btn-list a {
  display: inline-block;
  padding: 16px 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  color: var(--color-ink);
  background: var(--color-purple);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.btn-list a:hover {
  opacity: 0.85;
}

#external-tools .container h3 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-ink);
}

#external-tools .container .purpose-list + h3 {
  margin-top: 48px;
}

.heading-note {
  margin-left: 0.41em;
  font-size: 0.85em;
  font-weight: 400;
}

#external-tools .container .purpose-list {
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 1.2em;
  list-style: none;
}

#external-tools .container .purpose-list_align-heading {
  padding-left: 0;
}

#external-tools .container .purpose-list li {
  margin-bottom: 8px;
  padding-left: 0;
  text-indent: -1.2em;
  color: var(--color-ink);
}

#external-tools .container .purpose-list_align-heading li {
  padding-left: 1em;
  text-indent: -1em;
}

#external-tools .container .purpose-list li::before {
  content: "・";
}

#external-tools .container .purpose-list li:last-child {
  margin-bottom: 0;
}

#external-tool-summary .container {
  max-width: 1024px;
}

#external-tool-summary .container .contents-textbox {
  margin-left: 0;
  margin-bottom: 0;
}

#external-tool-summary .container h2 + .table {
  margin-top: 0;
}

/* 枠付きブロック: index .transfer-facts div と同じ色・線・角丸 */
.table,
.highlight,
.contact-box,
.contents-textbox {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background-color: var(--color-surface);
}

.table {
  display: flex;
  overflow: hidden;
  width: 100%;
  margin-bottom: 32px;
  border-spacing: 0;
  border-collapse: separate;
}

.table tbody {
  width: 100%;
}

.table-label,
.table-item,
.section-item {
  font-size: 0.875rem;
  line-height: 1.55;
}

.table-label,
.table-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: var(--space-4);
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.table-label {
  align-items: center;
  padding-left: 1em;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  color: var(--color-ink);
  background-color: var(--color-surface-raised);
}

.table-section {
  display: flex;
  align-items: stretch;
}

.table-item {
  color: var(--color-ink);
  background-color: var(--color-surface);
}

.table-item .section-list {
  width: 100%;
}

.table-item .heading-note {
  margin-left: 0.41em;
}

.table-item a {
  display: block;
  margin-bottom: 4px;
  color: var(--color-green);
}

.table-item a:last-child {
  margin-bottom: 0;
}

.section-item:first-of-type {
  margin-top: 0;
}

.table-label:last-of-type,
.table-item:last-of-type {
  border-right: none;
}

.table-section:last-of-type .table-label,
.table-section:last-of-type .table-item {
  border-bottom: none;
}

.contents-textbox {
  margin: 8px auto 32px;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6);
  list-style: none;
}

.contents-textbox > .annotation-list-item {
  margin-bottom: var(--space-2);
  padding-left: 1.5em;
  font-size: 0.875rem;
  line-height: 1.55;
  text-indent: -1.5em;
  color: var(--color-ink);
}

.contents-textbox > .annotation-list-item::before {
  content: none;
}

.contents-textbox > .annotation-list-item:last-of-type {
  margin-bottom: 0;
}

.contents-textbox .contents-num-list {
  margin-top: var(--space-1);
  margin-bottom: 0;
  padding-left: 1.5em;
  list-style-type: decimal;
  list-style-position: outside;
}

.contents-textbox .contents-num-item {
  margin-top: 0;
  margin-bottom: 8px;
  padding-left: 0.5em;
  line-height: 1.55;
  text-indent: 0;
  display: list-item;
}

.contents-textbox .contents-num-item:last-child {
  margin-bottom: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.container h1 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 2em;
  line-height: 1.3;
  color: var(--color-ink);
}

.last-updated {
  margin-bottom: 30px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.container h2 {
  margin-top: 56px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.3em;
  line-height: 1.4;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
}

.container p {
  margin-bottom: 16px;
  color: var(--color-ink);
}

.container > ul:not(.contents-textbox) {
  margin-left: 0;
  margin-bottom: 28px;
  padding-left: 1em;
  list-style: none;
}

.container > ul:not(.contents-textbox) > li {
  margin-bottom: 8px;
  padding-left: 0;
  text-indent: -1em;
  color: var(--color-ink);
}

.container > ul:not(.contents-textbox) > li::before {
  content: "・";
}

.container ul:has(+ p > .text-link) {
  margin-bottom: 8px;
}

#legal-pages .page_list {
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

#legal-pages .page_list li {
  margin-bottom: 16px;
}

#legal-pages .page_list a {
  font-size: 1rem;
  line-height: 1.55;
}

.container .table .section-list {
  margin: 0;
}

.container .table .section-item:last-child {
  margin-bottom: 0;
}

.highlight {
  margin: var(--space-4) 0 var(--space-2);
  padding: var(--space-4);
}

.highlight + h2 {
  margin-top: 44px;
}

.highlight p {
  margin-bottom: 0;
  color: var(--color-ink);
}

.highlight strong {
  color: var(--color-ink);
}

.contact-box {
  margin-top: var(--space-3);
  padding: var(--space-4);
}

.contact-box p {
  margin-bottom: 0;
}

.contact-box a {
  color: var(--color-green);
}

@media screen and (max-width: 799px) {
  .content {
    padding: 64px 24px;
  }

  .content-title {
    max-width: 100%;
    font-size: 2.8rem;
    line-height: 1.4;
  }

  .content-section {
    margin-bottom: 48px;
  }

  .section-title {
    line-height: 1.4;
  }

  .sp-only {
    display: inline;
  }

  .heading-note {
    margin-left: 0;
  }

  .heading-note_block {
    display: block;
  }

  .table-item .heading-note_block {
    margin-left: 0;
  }

  .table-label {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #external-tools .container h3 {
    padding-left: 1em;
    text-indent: -1em;
  }

  .table-label,
  .table-item,
  .section-item {
    overflow: hidden;
    font-size: 0.75rem;
    word-wrap: break-word;
  }

  .section-item {
    padding-left: 12px;
    text-indent: -16px;
  }

  .section-item::before {
    width: 2px;
    height: 2px;
    margin: 8px 7px 4px;
  }

  .container h1 {
    font-size: 1.5em;
  }

}
