:root {
  --guide-color-text: #1a1a1a;
  --guide-color-muted: #5c5c5c;
  --guide-color-link: #1070c5;
  --guide-color-link-hover: #0087ff;
  --guide-color-heading: #0f2d46;
  --guide-color-panel: #f5f5f5;
  --guide-color-border: #e2e2e2;
  --guide-max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
  color: var(--guide-color-text);
  background-color: #fff;
  font-size: 16px;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--guide-color-link-hover);
  text-decoration: underline;
}

.guide-section a {
  text-decoration: underline;
}

#wrapper {
  background-color: #fff;
}

#Guide {
  padding: 2.5rem 1rem 4rem;
}

.guide-content {
  max-width: var(--guide-max-width);
  margin: 0 auto;
}

.guide-section {
  margin: 2.5rem 0 3rem;
}

.guide-subsection {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--guide-color-border);
  border-radius: 10px;
  background-color: #fff;
}

.guide-content h1 {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  color: var(--guide-color-heading);
  margin: 3rem 0 0.5rem;
}

.guide-lede {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  color: var(--guide-color-heading);
  margin: 0 0 2rem;
}

.guide-section__title {
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--guide-color-border);
}

.guide-subsection__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.guide-subsection__title-notes {
  font-size: 1rem;
  color: #777;
}
.guide-intro {
  font-size: 0.95rem;
  text-align: center;
  margin: 0 auto 2rem;
  color: var(--guide-color-muted);
}

.guide-index {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background-color: var(--guide-color-panel);
  border-radius: 8px;
  text-align: left;
}

.guide-index__title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.guide-index__group + .guide-index__group {
  margin-top: 1.25rem;
}

.guide-index__heading {
  margin: 0;
  font-size: 1.1rem;
}

.guide-index__list {
  list-style: none;
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.guide-index__list li {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1rem;
}

.guide-index__list li::before {
  content: '\2015';
  position: absolute;
  left: 0;
  color: var(--guide-color-muted);
}

.guide-text {
  font-size: 1rem;
  margin: 0 0 1rem;
  font-weight: 400;
}

.guide-text--indent {
  margin-left: 1.25rem;
}

.guide-text--strong {
  font-weight: 600;
}

.guide-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.guide-list li {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.guide-list--numbered {
  --guide-list-indent: 1.75rem;
  list-style: none;
  padding-left: 0;
  counter-reset: guide-step;
}

.guide-list--numbered > li {
  position: relative;
  padding-left: var(--guide-list-indent);
}

.guide-list--numbered > li::before {
  counter-increment: guide-step;
  content: counters(guide-step, "-") ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--guide-color-heading);
}

.guide-list--numbered.guide-list--nested {
  --guide-list-indent: 2.75rem;
  margin: 0.5rem 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--guide-color-muted);
}

.guide-list--numbered.guide-list--nested > li::before {
  font-size: 0.95rem;
}

.guide-list--bullet {
  list-style-type: disc;
}

.guide-list__term {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.guide-list--note {
  list-style-type: disc;
  padding: 1rem 1.5rem;
  background-color: #f9f9f9;
  border: 1px solid var(--guide-color-border);
  border-radius: 6px;
}

.guide-list--note li {
  font-size: 0.95rem;
}

.guide-footnote {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #777;
}

.guide-example {
  display: block;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--guide-color-link);
  background: #f7fbff;
  font-size: 0.95rem;
  font-weight: normal;
}

.guide-example__label {
  font-weight: 600;
  margin-right: 0.5rem;
  color: var(--guide-color-link);
}

.guide-list--nested {
  margin: 0.5rem 0 0 1.5rem;
  padding-left: 0;
}

.guide-list--nested li {
  font-size: 0.95rem;
  color: var(--guide-color-muted);
}

#pageTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  z-index: 100;
}

#pagetop-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: inline-block;
  position: relative;
}

#pagetop-icon::after {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  position: absolute;
  top: 16px;
  left: 18px;
  transform: rotate(-45deg);
}

#pagetop-icon:hover {
  background: rgba(0, 0, 0, 0.65);
}

footer {
  padding: 2.5rem 1rem 3rem;
  background-color: #fff;
}

footer .guide-line {
  border-top: 1px solid var(--guide-color-border);
  padding-top: 2rem;
}

.footer-content-wrap {
  max-width: var(--guide-max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.footer-links a {
  color: var(--guide-color-muted);
  font-size: 0.85rem;
}

.footer-logo img {
  width: 140px;
  margin: 2rem auto 1rem;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--guide-color-muted);
}

@media (min-width: 768px) {
  #Guide {
    padding: 3.5rem 1.5rem 4.5rem;
  }

  .guide-content h1 {
    font-size: 2.4rem;
  }

  .guide-content h2 {
    font-size: 1.4rem;
  }

  .guide-index {
    padding: 2rem 2.5rem;
  }

  .guide-list {
    padding-left: 2rem;
  }

  #pagetop-icon {
    width: 56px;
    height: 56px;
  }

  #pagetop-icon::after {
    top: 25px;
    left: 22px;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-logo img {
    width: 160px;
  }
}
