@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&display=swap');

body {
  font-Family:
    "system-ui",
    -apple-system,
    BlinkMacSystemFont,
    "Meiryo",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Noto Sans JP",
    "Segoe UI",
    "sans-serif"
  ;
  font-weight: normal;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  color: black;
  letter-spacing: 4px;
  background: lightgray;
  display: flex;
  justify-content: center;
  height: 100vh;
}

/* 9:16 の比率を固定した縦長レイアウト */
.wrapper {
  aspect-ratio: 9 / 16;
  /* 比率指定 */
  width: min(90vw, 390px);
  /* 画面幅が狭いときは幅90%、広いときは390px固定 */
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#main {
  text-align: center;
  justify-content: center;
  padding: 8px 0dvw 0dvh 0dvw;
  margin: 0px 0px;
  width: 100%;
  height: 100%;
}


h1,
h2 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
}

.container {
  padding: 30px 2px 00px 2px;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

/* PC（幅768px以上）のとき3列に切り替え */
@media (min-width: 768px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.box {
  background: whitesmoke;
  padding: 8px;
  margin: 0;
  text-align: center;
  border-radius: 2px;
}

.font-small {
  font-size: 12px;
  letter-spacing: 1px;
}

.font-normal {
  font-size: 16px;
  letter-spacing: 2px;
}

.font-big {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 4px;
}

canvas {
  touch-action: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: lightgray;
  text-align: center;
  padding: 0;
  margin: 0;
  z-index: 1000;
  border: none;
  display: none;
}

.bottom-nav {
  position: fixed;
  /* 画面下に固定 */
  bottom: 0;
  left: 0;
  width: 100%;
  background: lightgray;
  display: flex;
  /* 横並びにする */
  justify-content: space-around;
  /* 均等に配置 */
  padding: 5px 0;
}

nav a {
  background-color: whitesmoke;
  border-color: gray;
  color: gray;
  border: solid 1px;
  font-size: 16px;
  padding: 16px 8px 8px 8px;
  border-radius: 5px;
  transition: 0.3s;
  text-decoration: none;
  width: 20dvh;
  text-align: center;
}

nav a:hover,
nav a:active {
  color: whitesmoke;
  background-color: gray;
}

nav rt {
  letter-spacing: 0px;
  padding: 2px;
}

textarea {
  margin: 0;
  padding: 0;
  width: 95%;
  /* 親要素の幅いっぱいに広げる */
  max-width: 600px;
  /* 最大幅を制限する場合 */
  height: 85vh;
  /* 高さを指定 */
}

@media (min-width: 768px) {
  textarea {
    height: 70vh;
  }
}

dt {
  font-weight: 700;
  color: #222;
  margin-top: 1rem;
  text-align: left;
  margin-left: 1.2rem;
  /* 左揃え */
}

dd {
  margin: 0.3rem 0 0.8rem 1rem;
  /* 左にインデント */
  color: #555;
  font-size: 0.95rem;
  margin-left: 1.2rem;
  /* 説明は少し小さめ */
}

/* スマホ・PC両対応（必要なら） */
@media (min-width: 768px) {
  .item-list {
    font-size: 1rem;
  }

  .item-list dd {
    margin-left: 1.2rem;
  }
}