@charset "utf-8";

/* ---------------------------------------------------- */
/* ２ページ目 */
/* ---------------------------------------------------- */
#page-2 {
  max-width: 1600px;
  margin: 60px auto 140px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 0 20px;

  & .uda-map {
    position: relative;
    width: 600px;
    height: 625px;

    & .comment {
      position: absolute;
      text-align: center;
      right: 0;
      bottom: 0.25rem;
    }

    & .name {
      display: flex;
      gap: 1rem;
      align-items: end;
      justify-content: center;
      margin-bottom: 1rem;
    }

    & .sub-comment {
      text-align: start;
    }

  }

  & .declare {
    position: relative;
    width: 600px;
    height: 700px;
    padding: 0 10px 0 10px;

    & .declare-title {
      width: 100%;
      height: auto;
    }

    & .comment {
      position: absolute;
      width: 500px;
      top: 50px;
      left: 50px;
    }

    & .signature {
      display: inline-block;
      transform: translateX(-5rem);
    }

    & .mayor {
      position: absolute;
      width: 180px;
      height: 180px;
      bottom: -60px;
      left: 350px;
    }
  }
}

/* レスポンシブ対応 1200px未満*/
@media screen and (max-width:1199px) {

  #page-2 {
    margin: 60px auto 0;
    padding: 0;
    display: block;

    & .uda-map {
      margin: 0 auto 80px;

      & .name {
        display: flex;
        gap: 1rem;
        align-items: end;
        justify-content: center;
      }
    }

    & .declare {
      margin: 0 auto 120px;
    }
  }
}

/* レスポンシブ対応 992px未満*/
@media screen and (max-width:991px) {

  #page-2 {
    & .uda-map {
      width: 540px;
      height: 575px;
    }
  }
}

/* レスポンシブ対応 768px未満*/
@media screen and (max-width:767px) {

  #page-2 {
    & .uda-map {
      height: 585px;

      & .comment {
        bottom: 1rem;
      }
    }
  }
}

/* レスポンシブ対応 576px未満*/
@media screen and (max-width:575px) {

  #page-2 {
    & .uda-map {
      width: 94%;
      height: calc(94vw + 70px);

      & .comment {
        width: 96%;

        & .name {
          justify-content: end;
          padding-right: 1rem;
        }
      }

      & .sub-comment {
        font-size: 14px;
      }
    }

    & .declare {
      width: 370px;
      height: 600px;
      padding: 0 2px;

      & .comment {
        width: 375px;
        padding: 0 20px;
        top: 30px;
        left: 0;

        & h4 {
          font-size: 18px;
        }

        & h3 {
          font-size: 21px;
        }

        & h6 {
          font-size: 13px;
        }
      }

      & .signature {
        transform: translateX(-3rem);
        font-size: 15px;
      }

      & .mayor {
        position: absolute;
        width: 120px;
        height: 120px;
        bottom: -70px;
        left: 245px;
      }
    }
  }
}