:root {
  --cl-gr: #32b988;
  --cl-gr-bg: #edf5f2;
  --cl-rd: #fa6153;
}

.body-fixed {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
}

.cl-gr {
  color: var(--cl-gr);
}

.cl-rd {
  color: var(--cl-rd);
}

.cl-gr-bg {
  color: var(--cl-gr-bg);
}

.block-residents-guide *,
.block-residents-guide *::before,
.block-residents-guide *::after {
  box-sizing: border-box;
}

.block-residents-guide {
  margin-bottom: 40px;

  b {
    font-weight: 700;
  }

  h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    background-color: var(--cl-gr-bg);
    color: var(--cl-gr);
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;
  }

  @media screen and (min-width: 767px) {
    h1 {
      height: 100px;
      font-size: 2.2rem;
    }
  }

  .block-residents-guide-list {
    padding: 15px 10px 0;

    .block-residents-guide-list-item {
      & + .block-residents-guide-list-item {
        margin-top: 20px;
      }

      h2 {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0 0 15px;
        padding: 0;
        border-radius: 3px;
        background-color: var(--cl-gr);
        color: #ffffff;
        font-size: 1.8rem;
        font-weight: 700;

        > div {
          display: flex;
          align-items: center;
          min-height: 36px;
          line-height: 1.2;

          &:first-child {
            justify-content: center;
            width: 36px;
          }

          &:last-child {
            width: calc(100% - 36px);
            padding: 7px 10px;
            border-left: 1px solid #279a70;
          }
        }
      }
    }

    .content-list-item {
      & + .content-list-item {
        margin-top: 15px;
      }

      h3 {
        display: flex;
        margin: 0 0 12px;
        padding: 0 0 4px;
        border-bottom: 1px solid var(--cl-gr);
        font-size: 1.6rem;
        font-weight: 700;

        > div {
          &:first-child {
            flex-shrink: 0;
            padding-right: 10px;
            color: var(--cl-gr);
          }

          &:last-child {
            flex-shrink: 1;

            > span {
              display: block;

              &.txt-s {
                font-size: 1.3rem;
              }
            }
          }
        }
      }
    }
  }

  @media screen and (min-width: 767px) {
    .block-residents-guide-list {
      margin-top: 20px;
      padding: 0;

      .block-residents-guide-list-item {
        & + .block-residents-guide-list-item {
          margin-top: 30px;
        }

        h2 {
          margin: 0 0 20px;
          border-radius: 6px;
          font-size: 2rem;

          > div {
            min-height: 50px;

            &:first-child {
              justify-content: center;
              width: 53px;
              font-size: 2.2rem;
            }

            &:last-child {
              width: calc(100% - 53px);
              padding: 7px 20px;
              border-left: 1px solid #279a70;
            }
          }
        }
      }

      .content-list-item {
        & + .content-list-item {
          margin-top: 20px;
        }

        h3 {
          margin: 0 0 15px;
          padding: 0 0 6px;
          font-size: 1.8rem;

          > div {
            &:first-child {
              color: var(--cl-gr);
              font-size: 2rem;
            }

            &:last-child {
              > span {
                display: inline;

                &.txt-s {
                  margin-right: 0.3em;
                  font-size: 1.3rem;
                }
              }
            }
          }
        }
      }
    }
  }

  .block-residents-guide-list {
    .list-content {
      margin: 0;
      padding: 0;

      .list-comment {
        font-size: 1.4rem;

        h4 {
          margin: 0 0 2px;
          padding: 0;
          font-size: 1.4rem;
          font-weight: 700;
        }

        a {
          text-decoration: underline;
        }

        .rule-ttl {
          margin-bottom: 12px;
          color: var(--cl-gr);
          font-size: 1.5rem;
          font-weight: 700;
        }

        .large_circle {
          li {
            position: relative;
            padding-left: 1em;

            &::before {
              content: "●";
              display: block;
              position: absolute;
              top: 0;
              left: 0;
            }
          }
        }

        .diamond {
          li {
            position: relative;
            padding-left: calc(1em + 4px);

            &::before {
              content: "◆";
              display: block;
              position: absolute;
              top: 0;
              left: 0;
            }
          }
        }

        .annotation {
          li {
            position: relative;
            padding-left: 1em;

            &::before {
              content: "※";
              display: block;
              position: absolute;
              top: 0;
              left: 0;
            }
          }
        }

        .circle_num {
          li {
            position: relative;
            padding-left: 1em;

            > span {
              display: block;
              position: absolute;
              top: 0;
              left: 0;
            }
          }
        }

        p + h4,
        p + .diamond,
        .annotation + .diamond {
          margin-top: 12px;
        }

        p + .circle_num {
          margin-top: 2em;
        }
      }

      .list-img {
        display: flex;
        justify-content: center;
        margin-top: 12px;

        img {
          display: block;
          width: 250px;
          height: auto;
        }

        picture {
          img {
            width: 100%;
          }
        }
      }
    }
  }

  @media screen and (min-width: 767px) {
    .block-residents-guide-list {
      .list-content {
        display: flex;
        justify-content: space-between;
        margin: 0;
        padding: 0;

        &.has-img {
          .list-comment {
            width: calc(100% - 240px);
          }

          .list-img {
            display: block;
            width: 200px;
            margin: 0;

            img {
              width: 100%;
            }
          }
        }

        .list-comment {
          .rule-ttl {
            font-size: 1.6rem;
          }
        }
      }
    }
  }

  .block-residents-guide-bg-box {
    width: calc(100% - 20px);
    margin: 40px auto 0;
    padding: 0 10px 10px;
    border-radius: 3px;
    background-color: var(--cl-gr-bg);

    & + .block-residents-guide-bg-box {
      margin-top: 20px;
    }

    h2 {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 55px;
      margin: 0;
      padding: 0;
      color: var(--cl-gr);
      font-size: 1.7rem;
      font-weight: 700;
      text-align: center;
    }

    .block-residents-guide-bg-box-content {
      width: 100%;
      padding: 10px;
      border-radius: 3px;
      background-color: #ffffff;

      .block-residents-guide-list {
        padding: 0;

        .large_circle {
          li {
            & + li {
              margin-top: 6px;
            }
          }
        }

        p + .large_circle {
          margin-top: 12px;
        }
      }
    }
  }

  @media screen and (min-width: 767px) {
    .block-residents-guide-bg-box {
      width: 100%;
      border-radius: 6px;

      h2 {
        height: 66px;
        font-size: 2.2rem;
      }

      .block-residents-guide-bg-box-content {
        padding: 20px;
        border-radius: 6px;
      }
    }
  }

  @media screen and (max-width: 766px) {
    .block-residents-guide-register-flow {
      li {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .list-img {
          position: relative;
          width: 80px;

          img {
            display: block;
            width: 100%;
            height: auto;
          }
        }

        .list-detail {
          width: calc(100% - 100px);

          .list-ttl {
            font-size: 1.5rem;
            font-weight: 700;
          }

          .list-comment {
            margin-top: 5px;
            font-size: 1.4rem;
          }
        }

        &:not(:last-child) {
          margin-bottom: 37px;

          .list-img {
            &::after {
              content: "";
              display: block;
              position: absolute;
              bottom: -30px;
              left: 50%;
              width: 13px;
              height: 11px;
              margin-left: -6px;
              background-color: var(--cl-gr);
              clip-path: polygon(50% 11px, 0% 0%, 13px 0%);
            }
          }
        }
      }
    }
  }

  @media screen and (min-width: 767px) {
    .block-residents-guide-register-flow {
      display: flex;
      justify-content: space-between;

      li {
        width: calc((100% - 96px) / 3);

        .list-img {
          display: flex;
          justify-content: center;

          img {
            display: block;
            width: 100px;
          }
        }

        .list-detail {
          margin-top: 23px;
        }

        .list-ttl {
          font-size: 1.6rem;
          font-weight: 700;
          text-align: center;
        }

        .list-comment {
          margin-top: 10px;
          font-size: 1.4rem;
        }

        &:not(:last-child) {
          position: relative;

          &::after {
            content: "";
            display: block;
            position: absolute;
            top: 77px;
            right: -33px;
            width: 16px;
            height: 18px;
            background-color: var(--cl-gr);
            clip-path: polygon(16px 50%, 0% 0%, 0% 18px);
          }
        }
      }
    }
  }

  .block-residents-guide-register-icon {
    margin-top: 15px;
    padding: 15px 0 7px;
    border-top: 1px solid var(--cl-gr);

    > dl {
      display: flex;
      align-items: center;
      justify-content: center;

      dt {
        font-display: 1.4rem;
        font-weight: 700;
      }

      dd {
        display: flex;
        align-items: center;
        margin-left: 25px;

        > div {
          & + div {
            margin-left: 10px;
          }
        }

        a {
          display: block;
        }

        img {
          display: block;
          width: 50px;
          height: auto;
        }
      }
    }
  }

  @media screen and (min-width: 767px) {
    .block-residents-guide-register-icon {
      margin-top: 20px;
      padding: 20px 0 0;

      > dl {
        dt {
          font-display: 2rem;
        }

        dd {
          margin-left: 52px;

          > div {
            & + div {
              margin-left: 24px;
            }
          }

          img {
            width: 80px;
          }
        }
      }
    }
  }

  @media screen and (min-width: 767px) {
  }
}
