html {
  font-size: 75%;
  position: relative;
  z-index: 0;
}

html::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../image/dot.png);
  background-repeat: repeat;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

body {
  font-family: "Helvetica", "Arial", sans-serif;
  margin: 0 auto;
  padding: 0;
  color: #333;
  line-height: 1.7;
  width: 100%;
}

.character {
  width: 12rem;
}

header {
  margin: 5rem auto;
  padding: 0 20px;
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.header-left {
  margin-right: 3rem;
}

/* タイトル */
.icon-box {
  border-radius: 10%;
  display: inline-block;
  width: 16rem;
  background-color: #ccc;
  margin-right: 3%;
  vertical-align: middle;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 3.2rem;
}

.title-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.download-btn {
  width: 15rem;
}

.title-right {
  margin-left: 3rem;
}

.header-text {
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: bold;
}

.comment-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* 吹き出し */
.speech-bubble {
  position: relative;
  background: #ffefdc;
  font-size: 1.6rem;
  text-align: left;
  border-radius: 10px;
  padding: 2rem;
  max-width: 380px;
  margin: 40px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  top: 20px;
  left: -32px;
  width: 0;
  height: 0;
  border-top: 21px solid transparent;
  border-bottom: 21px solid transparent;
  border-right: 35px solid #ffefdc;
}

/* トップの画像 */
.main-screen {
  width: 24rem;
}

main {
  margin: 8rem auto;
}

h2 {
  text-align: center;
  margin: 0 auto;
  font-size: 3rem;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 10rem;
  background-color: #539a54;
}

.step-contain-wrapper {
  padding: 0.5rem 2rem;
}

.step-contain {
  background-color: #ffefdc;
  border-radius: 30px;
  margin: 3rem auto;
  max-width: 90rem;
  display: flex;
  flex-direction: row;
}

.step-contain-left {
  padding: 3rem;
}

.screenImg {
  width: 20rem;
}

.step-contain-right {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3rem 3rem 0rem;
}

.step-contain-right p {
  font-size: 2rem;
}

.step-contain-right .character {
  margin-left: auto;
}

.stepImg {
  width: 8rem;
}

.step2-text {
  padding: 2rem 0;
}

.step-contain-right .attention {
  font-size: 1.4rem;
}

ul li {
  font-size: 1.4rem;
  margin-left: 2rem;
}

/* フッター */
.footer {
  text-align: center;
}

h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffffff;
}

.contact-title {
  padding-top: 3rem;
  margin-bottom: 3rem;
}

.store-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #539a54;
  width: 100%;
  height: 18rem;
}

.store-button img {
  width: 18rem;
}

.footer .contact {
  background-color: #dfdede;
}

.footer .contact a {
  color: #539a54;
  text-decoration: none;
  font-size: 1.6rem;
}

.footer .contact a:hover {
  text-decoration: underline;
}

.footer .contact p {
  font-size: 1.6rem;
  padding-bottom: 3rem;
}

.footer .copyright {
  background-color: #ffffff;
  padding: 2rem 0;
}

.footer .copyright p {
  font-size: 1.2rem;
}

@media (max-width: 830px) {
  html {
    font-size: 62.5%;
  }
}

@media (max-width: 730px) {
  html {
    font-size: 45%;
  }

  h1 {
    font-size: 1.8rem;
  }

  .main-screen {
    width: 20rem;
  }

  .speech-bubble::after {
    top: 0px;
    left: -21px;
  }
}

@media (max-width: 500px) {
  html {
    font-size: 40%;
  }
  h1 {
    font-size: 1.3rem;
  }

  header {
    flex-direction: column;
  }

  .header-left {
    margin-right: 0;
  }

  .icon-box {
    width: 14rem;
  }

  .title-wrapper {
    justify-content: center;
  }

  .header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .header-text p {
    text-align: left;
    width: 100%;
    max-width: 40rem;
  }
}

@media (max-width: 400px) {
.screenImg {
  width: 16rem;
}

.step-contain-left{
  display: flex;
align-items: center;
}
}