dialog {
	padding: 1.5rem;
	border: none;
	border-radius: 0.5rem;
	text-align: center;
    width: 90vw;
    height: 90vh;
    max-width: none;
    max-height: none;
}
html, css{
  touch-action:none;
}
#MainButton {
    width: 300px;
    height: 300px;
    max-width: 80vw;
    max-height: 80vw;
}
body {
  background-image: url("img/back.webp");
  background-size: cover;
  margin: 0;
  padding: 0;
}
main p{
  color:#eef;
  font-size: 16px;
  text-align: center;
  margin: 10px 0;
}
.ShopBox {
  background-color: #00000080;
  border: 1px solid #000;
  overflow-y: scroll;
  width: 95%;
  /* 高さの固定値を無くし、画面内に収まるように最大値を設定 */
  max-height: 30vh;
  min-height: 200px;
  display: flex;
  margin: 2% auto;
  flex-direction: column;
  align-items: center;
}
header details{
  margin: 5px;
} 
.ShopBox button{
  margin: 10px;
  /* 高さを固定せず、内容に応じて広がるように調整 */
  min-height: 100px;
  height: auto;
  width: 90%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  flex-shrink: 0;
}
.ShopBox button img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  margin-left: 5px;
  margin-right: 10px;
}
.ShopBox button *{
  color:#023;
  font-size: 14px;
}
.ShopBox button p{
  text-align: left;
  margin: 5px;
  /* スマホの狭い画面でテキストを折り返す */
  word-break: break-all;
}
header{
  height: auto;
  background-color: rgba(0, 0, 0, 0.5);
  /* スマホでは縦に並べる */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0px;
  padding: 10px;
}
header *{
  color: #eef;
}
header a{
  color: #88f;
}
header button{
  color: #225;
}
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  padding: 10px 0;
}
img{
  user-select: none;
  -webkit-user-drag: none;
}