/*基本設定*/
body {
  background-color: #ffddcc;
  font-family: 'Montserrat', 'Roboto', 'Noto Sans JP', arial, sans-serif;
}

.startbtn {
  background-color: #ffffff;
  border: solid 2px #990000;
  box-shadow: 0rem 0.5rem 0 #990000;
  color: #990000;
}
.startbtn:hover {
  background: #ffeeee;
}

/*リンクの色*/
a:link{color: #ff3333}
a:visited{color: #ff0099}
a:hover{color: #ff3366}
a:active{color: #ff6699}

p {
  color: #333333;
}
b, .b, strong ,.strong {
  color: #990000;
}
b {font-size: inherit;}
.noDisplay {
  display: none!important;
}

.box {
	width: 96%;
  max-width: 640px;
	height: auto;
	margin: 2.0rem auto;
  background-color: #ffffdd;
  border-radius: 1.5rem;
  position: relative;
  padding-bottom: 1.0rem;
}

/* 文字入力エリアのコンテナ */
.letter_place {
  display: flex;
  justify-content: center;
  gap: 1.0rem;
  padding: 2.0rem 0;
}
.letter {
  width: 22%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: solid 2px #bbbbbb;
  border-radius: 0.8rem;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8.0rem;
  font-weight: bold;
  color: #333333;
  box-sizing: border-box;
  -webkit-text-stroke: 0;
}
.letter.is-placeholder {
  color: transparent;
  -webkit-text-stroke: 1px #cccccc;
}
.letter.collectletter {
  color: #00cc00;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 10px rgba(102, 255, 102, 0.3);
}

@media screen and (max-width: 640px) {
  .letter {
    font-size: 4.0rem;
    border-radius: 0.5rem;
  }

  .letter_place {
    gap: 0.5rem;
  }
}

.color_place {
  display: flex;
  justify-content: center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.color_btn {
  width: 25%;
  height: auto;
  aspect-ratio: 1/1;
  margin: 2%;
  box-shadow: 0px 6px 0px #999999;
  border-radius: 25%;
  background: #ffffff;
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  position: relative;
  top: 0;
}
.color_btn.is-active {
  top: 5px;
  box-shadow: 0px 1px 0px #999999;
}
.color_btn img {
  width: 100%;
  margin: 0;
}


/* モーダル */
.mordal {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 4/3;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.90);
  box-sizing: border-box;
  border: solid 0.5rem #cc7766;
  border-radius: 1.5rem;
  z-index: 100;
}
.clearMordal {
  border: solid 0.5rem #ff7766;
}
.mordal p {
  font-size: 6.4rem;
  color: #333333;
  margin-bottom: 2.8rem;
  font-weight: bold;
  cursor: default;
}
.clearMordal p {
  font-size: 9.6rem;
  color: #ff7766;
}
@media screen and (max-width: 640px) {
  .mordal p {
    font-size: 3.6rem;
    margin-bottom: 1.6rem;
  }
  .clearMordal p {
    font-size: 4.8rem;
  }
}

.retryBtn {
  width: 60%;
  height: auto;
  font-size: 2.4rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  text-align: center;
  margin: 1.0rem auto;
  padding: 0;
  color: #cc7766;
  background-color: inherit;
  border: solid 0.2rem #cc7766;
  border-bottom: 0.6rem solid #cc7766;
  border-radius: 50vh;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.retryBtn p {
  margin: 0;
  font-size: 2.8rem;
  color: #cc7766;
}
.retryImg {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0.8rem 0.8rem 0.8rem -0.8rem;
}