/* フォント設定 */
@font-face {
  font-family: モトヤLマルベリ;
  src: url("https://cdn.leafscape.be/MTLmr3m/MTLmr3m_web.woff2") format("woff2");
}

* {
  font-family: モトヤLマルベリ;
}

/**** フォントサイズ ****/

/* ルートの文字サイズを10pxに設定 */
html {
  font-size: 62.5%;
}

/* bodyのフォントサイズを1.6em（16px）に設定 */
body {
  font-size: 1.6em;
}

/* ↓スマホ（横幅550px以下）の場合 */
@media screen and (max-width: 550px) {
  html {
    /* 1rem = 50pxと再定義 */
    font-size: 10px;
  }

  body {
    font-size: 1.6em;
  }
}

/* boder-box設定 */
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* body-margin設定 */
body {
  margin: 0;
}

/* ローディング中 */
#loading {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1000;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

#loading-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#loading-star {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#loading-message {
  position: absolute;
  top: calc(50% + 50px);
  left: calc(50% + 0.5rem);
  transform: translate(-50%, -50%);
  color: rgba(0, 0, 0, 0.5);
}

#loading-circle object {
  animation: example steps(8) 1s infinite;
}

@keyframes example {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.none {
  display: none;
}

/* メッセージ */
#message {
  color: red;
}

/* 結果表示 */
#result-img {
  max-width: 100%;
}

/* 下部ボタン領域レイアウト */
#ctrl {
  width: 100%;
  background-color: #edffdb;
  position: fixed;
  bottom: 0;
  display: flex;
}

#select {
  flex: 1;
  display: flex;
  flex-direction: row;
}

#imVisual {
  flex-shrink: 0;
}

#imOutput {
  display: inline-block;
  flex-shrink: 1;
  margin: auto 0 auto 2px;
}

#setting {
  padding: 1px 3px;
}

#imBtn {
  display: none;
}

/* ボタンデザイン */
.btn {
  font-size: 1.6rem;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 1rem 1rem 1rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(to right, #69dbf9 0%, #948deb 100%);
  border: none;
}

.btn svg {
  margin-right: 1rem;
}

/* トグルボタン */
.btn-tgl-on {
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 0.1rem 0.5rem 0.1rem 0.5rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-radius: 1rem;
  color: #fff;
  background: #ed795c;
  border: solid 1px #807a73;
  box-shadow: inset 0px -0.2rem 0px 0 #b93624;
}

.btn-tgl-off {
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 0.1rem 0.5rem 0.1rem 0.5rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-radius: 1rem;
  color: #fff;
  background: #bdbdbb;
  border: solid 1px #807a73;
  box-shadow: inset 0px 0.2rem 0px 0 #9f9f9f;
}

/* 見出しデザイン */
h1 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.5rem 1rem;
  border: none;
  height: 5.2rem;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(to right, #69dbf9 0%, #948deb 100%);
}

h1>object {
  position: absolute;
  top: 0;
  right: 0;
}

/* 使い方 */
#manual {
  max-width: 540px;
}

#manual-title {
  margin: 10px 0 0;
  text-align: center;
}

#manual-before {
  display: flex;
  flex-direction: column;
}

#manual-after {
  display: flex;
  flex-direction: column;
}

.manual-description {
  flex-shrink: 1;
  flex-grow: 1;
  padding: 5px;
}

#manual-before .manual-image {
  flex-shrink: 0;
  text-align: center;
  flex-direction: row;
  display: flex;
}

#manual-before .manual-image .year104 {
  margin-left: 2px;
}

#manual-before .manual-image .year103 img {
  width: calc((100% - 1em) / 2);
}

#manual-before .manual-image .year104 img {
  width: calc((100% - 2em) / 3);
}

#manual-before .manual-image .year103 svg {
  margin: calc((100% - 2em) / 400 * 178) 0;
}

#manual-before .manual-image .year104 svg {
  margin: calc((100% - 3.5em) / 600 * 178) 0;
}

#manual-after .manual-image {
  flex-shrink: 0;
  text-align: center;
  flex-direction: row;
  display: flex;
}

#manual-after .manual-image .year103 {
  flex-shrink: 1;
  flex-grow: 1;
}

#manual-after .manual-image .year104 {
  flex-shrink: 1;
  flex-grow: 1;
}

#manual-after .manual-image .year103 img {
  width: calc(50% - 35px);
}

#manual-after .manual-image .year104 img {
  width: calc(50% - 35px);
}