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

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
}

#root {
  height: 100%;
}

#dialog {
  font-family: "Yu Gothic", "YuGothic", sans-serif, "Meiryo UI", Meiryo;
  color: #707070;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
}

.icon-box {
  display: flex;
  position: relative;
  justify-content: center;
  background-color: #f5f5f5;
  color: #ffffff;
  width: 100%;
  min-height: 200px;
  padding: 1.25rem 0.5rem;
  margin-bottom: 50px;
}

.icon {
  position: absolute;
  bottom: -50px;
  height: 150px;
  width: 150px;
  z-index: 2147483647;
}

.message-box {
  margin: 2rem auto;
}

.message-box h1,
.message-box p {
  margin: 0;
  font-weight: bold;
  text-align: center;
}

.notification-manage-box-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #f5f5f5;
  width: 100%;
  max-width: 800px;
}

.notification-manage-box {
  width: 100%;
  max-width: 480px;
  padding: 1rem 0.75rem;
}

.notification-manage-box .title {
  text-align: center;
  font-weight: bold;
  margin-top: 0;
}

.allow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.allow > p {
  padding-right: 8px;
  width: 50%;
  font-weight: bold;
}

.allow > img {
  padding-left: 8px;
  width: 50%;
}

.switch {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.switch label {
  width: 200px;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: #ffffff;
  border-radius: 13px;
}

.switch span {
  width: 90px;
  height: 30px;
  margin: 0 5px;
  position: absolute;
  background-color: #e2641e;
  border-radius: 8px;
}
.switch label::before,
.switch label::after {
  margin: 5px;
  width: 50%;
  text-align: center;
  font-weight: 600;
  z-index: 10;
}

.switch label::before {
  content: "受信する";
}

.switch label::after {
  content: "拒否";
}

.switch input[type="checkbox"] {
  opacity: 0;
  height: 100%;
  width: 100%;
  cursor: inherit;
  display: block;
  margin: 0;
  padding: 0;
}

.switch input[type="checkbox"] + label > span {
  right: 0;
  transition: right 0.5s ease;
}

.switch input[type="checkbox"] + label::before,
.switch input[type="checkbox"]:checked + label::after {
  color: #b1b1b1;
}

.switch input[type="checkbox"] + label::after,
.switch input[type="checkbox"]:checked + label::before {
  color: #ffffff;
}

.switch input[type="checkbox"]:checked + label > span {
  right: 50%;
}

.subscribe-button-box {
  text-align: center;
}
.subscribe-button-box > button {
  appearance: none;
  border: none;
  color: white;
  margin: 0 5px;
  background-color: #e2641e;
  border-radius: 8px;
  padding: 0.25em 1em;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
}

div.go-back-link {
  text-align: center;
  margin-top: 1em;
  margin-bottom: 0;
  font-weight: bold;
}
div.go-back-link > a {
  color: #707070;
}

.credit {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.p7-logo {
  height: 42px;
}

.powered {
  font-weight: bold;
  margin-right: 1em;
}

.loader {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader > img {
  width: 220px;
}

.spinner > div {
  width: 18px;
  height: 18px;
  background-color: #ff8e00;

  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
