@charset "utf-8";

/* カラー */
/* アクセント：#FFECA1 */
/* メイン：#6E6360 */
/* ポイント：#93b888 */

html {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

:root {
  --vh: 100px; /* デフォルトの値を設定しておく */
  --base-font-size: 16px;
  scroll-behavior: smooth;
}

/* スクロールデザイン */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}
::-webkit-scrollbar-track {
  background-color: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #FFECA1;
}
/* --------------------------- */

body {
  width: 100%;
  min-width: 280px;
  min-height: 660px;
  color: #6E6360;
  font-size: 16px;
  font-family: 'Kaisei Opti', serif;
  font-weight: 400;
  font-style: normal;
  user-select: none;
  overscroll-behavior: contain;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: calc(var(--dvh, 1vh) * 100);
  background-image: url(../img/application-item/appBackground.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* スクリーンリーダー用の非表示テキスト(SEO) */
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* メンテナンスメッセージ */
.maintenanceMessage {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: calc(var(--dvh, 1vh) * 100);
  background-color: rgb(110, 99, 96, 0.8);
  overflow: auto;
}
.maintenanceMessage .messageContents {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 360px;
  padding: 30px 10px;
  background-color: #fff;
  box-shadow: 2px 2px 5px -2px rgb(110, 99, 96, 0.6);
  border-radius: 10px;
}
.maintenanceMessage .messageContents p {
  line-height: 1.5;
  text-align: center;
}

/* マニュフェストのバージョンチェック */
.manifestVersionCheckMessage {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: calc(var(--dvh, 1vh) * 100);
  background-color: rgb(110, 99, 96, 0.8);
  overflow: auto;
}
.manifestVersionCheckMessage .messageContents {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  max-width: 360px;
  padding: 30px 10px;
  background-color: #fff;
  box-shadow: 2px 2px 5px -2px rgb(110, 99, 96, 0.6);
  border-radius: 10px;
}
.manifestVersionCheckMessage h2 {
  text-align: center;
  line-height: 1.5;
  font-size: 18px;
}
.manifestVersionCheckMessage p {
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 700;
  color: rgb(110, 99, 96, 0.8);
}
.manifestVersionCheckMessage li {
  display: flex;
  justify-content: start;
  align-items: start;
  margin-top: 20px;
  line-height: 1.5;
  padding-left: 30px;
  position: relative;
}
.manifestVersionCheckMessage li .num {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  background-color: #FFECA1;
  box-shadow: 2px 2px 5px -2px rgb(110, 99, 96, 0.6);
  border-radius: 100px;
}
.manifestVersionCheckMessage .appIcon {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 160px;
  margin: 0 auto;
  padding-top: 20px;
}
.manifestVersionCheckMessage .appIcon label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 25px;
  font-size: 14px;
  font-weight: 700;
}
.manifestVersionCheckMessage .appIcon img {
  width: 80px;
  height: 80px;
  margin-top: 10px;
  border-radius: 100px;
  box-shadow: 2px 2px 5px -2px rgb(110, 99, 96, 0.6);
}
.manifestVersionCheckMessage.ios .appIcon img {
  border-radius: 10px;
}
.manifestVersionCheckMessage.android .appIcon img {
  border-radius: 100px;
}
/* コピー完了メッセージ */
.manifestVersionCheckMessage .copyMessage {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 260px;
  height: 35px;
  padding: 10px;
  background-color: #FFECA1;
  box-shadow: 2px 2px 5px -2px rgb(110, 99, 96, 0.6);
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.3s;
}
.manifestVersionCheckMessage .copyMessage.success {
  opacity: 1;
}

/* PCからのアクセスを回避 */
.mobileOnlyMessage {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: calc(var(--dvh, 1vh) * 100);
  background-color: rgb(110, 99, 96, 0.8);
}
.mobileOnlyMessage .messageContents {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 320px;
  padding: 30px 10px;
  background-color: #fff;
  box-shadow: 2px 2px 5px -2px rgb(110, 99, 96, 0.6);
  border-radius: 10px;
}
.mobileOnlyMessage .messageContents img {
  display: block;
  width: 180px;
  margin: 0 auto;
}
.mobileOnlyMessage .messageContents p {
  margin-top: 20px;
  text-align: center;
}
@media screen and (min-width: 520px) {
  .mobileOnlyMessage {
    display: block;
  }
}

/* ローディング */
.loadingAnimation {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: calc(var(--dvh, 1vh) * 100);
  background-color: rgb(255, 255, 255, 0.8);
}
.loadingAnimation#loadingDisplay {
  left: 0;
  opacity: 1;
  visibility: visible;
  transition: left 0.1s, opacity 0.5s 0.1s, visibility 0.1s;
}
.loadingAnimation#loadingHidden {
  left: -100%;
  opacity: 0;
  visibility: hidden;
  transition: left 0.1s 0.5s, opacity 0.5s, visibility 0.1s 0.5s;
}
.loadingAnimation .loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6E6360;
  animation: l10 1.5s infinite linear;
}
@keyframes l10 {
  0% {
    box-shadow: 
      0 -30px #FFECA1, calc(30px * 0.707) calc(-30px * 0.707) #93b888,
      30px 0 #FFECA1, 0 0 #93b888, 0 0 #FFECA1, 0 0 #93b888,
      0 0 #FFECA1, 0 0 #93b888
  }
  12.5% {
    box-shadow: 
      0 0 #FFECA1, calc(30px * 0.707) calc(-30px * 0.707) #93b888,
      30px 0 #FFECA1, calc(30px * 0.707) calc(30px * 0.707) #93b888,
      0 0 #FFECA1, 0 0 #93b888, 0 0 #FFECA1, 0 0 #93b888
  }
  25% {
    box-shadow: 
      0 0 #FFECA1, 0 0 #93b888, 30px 0 #FFECA1,
      calc(30px * 0.707) calc(30px * 0.707) #93b888,
      0 30px #FFECA1, 0 0 #93b888, 0 0 #FFECA1, 0 0 #93b888
  }
  37.5% {
    box-shadow: 
      0 0 #FFECA1, 0 0 #93b888, 0 0 #FFECA1, calc(30px * 0.707) calc(30px * 0.707) #93b888,
      0 30px #FFECA1, calc(-30px * 0.707) calc(30px * 0.707) #93b888, 0 0 #FFECA1, 0 0 #93b888
  }
  50% {
    box-shadow: 
      0 0 #FFECA1, 0 0 #93b888, 0 0 #FFECA1, 0 0 #93b888,
      0 30px #FFECA1, calc(-30px * 0.707) calc(30px * 0.707) #93b888, -30px 0 #FFECA1, 0 0 #93b888
  }
  62.5% {
    box-shadow: 
      0 0 #FFECA1, 0 0 #93b888, 0 0 #FFECA1, 0 0 #93b888,
      0 0 #FFECA1, calc(-30px * 0.707) calc(30px * 0.707) #93b888, -30px 0 #FFECA1,
      calc(-30px*0.707) calc(-30px * 0.707) #93b888
  }
  75% {
    box-shadow: 
      0 -30px #FFECA1, 0 0 #93b888, 0 0 #FFECA1, 0 0 #93b888,
      0 0 #FFECA1, 0 0 #93b888, -30px 0 #FFECA1, calc(-30px * 0.707) calc(-30px * 0.707) #93b888
  }
  87.5% {
    box-shadow: 
      0 -30px #FFECA1, calc(30px * 0.707) calc(-30px * 0.707) #93b888, 0 0 #FFECA1, 0 0 #93b888,
      0 0 #FFECA1, 0 0 #93b888, 0 0 #FFECA1, calc(-30px * 0.707) calc(-30px * 0.707) #93b888
  }
  100% {
    box-shadow: 
      0 -30px #FFECA1, calc(30px * 0.707) calc(-30px * 0.707) #93b888, 30px 0 #FFECA1, 0 0 #93b888,
      0 0 #FFECA1, 0 0 #93b888, 0 0 #FFECA1, 0 0 #93b888
  }
}

/* フォームのパーツ */
input, select {
  width: 100%;
  height: 50px;
  padding-inline-start: 20px;
  box-shadow: 0 0 7px 0px rgb(110, 99, 96, 0.6) inset;
  border-radius: 100px;
  transition: background-color 0.3s;
}

/* システムエラー */
/* #systemMessage {
  min-height: 20px;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 700;
  color: #93b888;
} */

/* アプリのインストール */
.appInstallBtn {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 45px;
  background-color: rgb(255, 255, 255, 0.8);
  display: none;
  font-size: 16px;
  font-weight: 700;
  transition: height 0.5s;
}
#notInstall {
  display: block;
}
.appInstallBtn #appInstall {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0 auto;
}
.appInstallBtn #appInstall img {
  width: 25px;
  height: 25px;
  margin-right: 10px;
  border-radius: 100px;
}