*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background: #e5e5e5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
}

#app {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* モバイル: body flex を使わず全幅表示 */
@media (max-width: 600px) {
  html, body {
    background: #fff;
  }
  #app {
    max-width: 100%;
    margin: 0;
  }
}
