.card {
  position: relative;
  width: 522px;
  height: 372px;
}

.card .front,
.card .back {
  display: table;
  text-align: center;
}

.card .front .side,
.card .back .side {
  position: absolute;
}

.card .front #question,
.card .back #ans {
  display: table-cell;
  vertical-align: middle;
}

.card div {
  position: absolute;
  top: 0;
  left: 0;
  /*transition: .7s;*/
  backface-visibility: hidden;
}

.card .front {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #000000;
  border-radius: 5px;
  width: 500px;
  height: 350px;
  background-color: #FFFFFF;
}

.card .back {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #000000;
  border-radius: 5px;
  width: 500px;
  height: 350px;
  background-color: #FFFFFF;
  transform: rotateY(-180deg);
  transition-duration: 0s;
}

input[type=checkbox].card-side:checked~.card .front {
  transform: rotateY(180deg);
  transition-duration: .7s;
}

input[type=checkbox].card-side:checked~.card .back {
  transform: rotateY(0);
  transition-duration: .7s;
}

.op {
  border-radius: 50%;
  background-color: white;
  border: 1px solid #000000;
  padding: 20px;
  cursor: pointer;
}

.op:hover {
  background-color: lightgray;
}

.setting {
  margin: 1em;
  display: inline-block;
  padding: 4px;
  border: none;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  font-weight: bold;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  border: 2px solid transparent;
}

.setting:hover {
  background-color: #000;
}

.setting:focus {
  outline: 0;
  background-color: #000;
  border: 2px solid rgb(33, 150, 243);
}

.card-side {
  display: none;
}

.title {
  padding: 0.5em;
}

table {
  /* text-align: center; */
  border-collapse: collapse;
}

th {
  padding: 5px;
  border: 1px solid #333;
}

td {
  padding: 5px;
  border: 1px solid #333;
}

.js-summary {
  /* display: list-item;以外を指定してデフォルトの三角形アイコンを消します */
  display: block;
}

.js-summary::-webkit-details-marker {
  /* Safariで表示されるデフォルトの三角形アイコンを消します */
  display: none;
}

.summary_inner {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid #4DB56A;
}

.icon {
  display: block;
  position: relative;
  width: 24px;
  margin-left: 6px;
  flex-shrink: 0;
  transform-origin: center 43%;
  transition: transform 0.4s;
}

/* is-openedクラスが付与されたときのスタイル */
.js-details.is-opened .icon {
  transform: rotate(180deg);
}

/* アイコンのバーのスタイル */
.icon::before,
.icon::after {
  content: "";
  position: absolute;
  display: block;
  width: 15px;
  height: 3px;
  background-color: #4DB56A;
}

.icon::before {
  left: 0;
  transform: rotate(45deg);
}

.icon::after {
  right: 0;
  transform: rotate(-45deg);
}

/* --------アコーディオンの中身のスタイル-------- */
.js-content {
  overflow: hidden;
  background-color: #F0F9E0;

  /* details直下のタグにpaddingを設定すると挙動がおかしくなるので、ここには指定しない */
}

.content_inner {
  padding: 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------レイアウト用のスタイル-------- */
.wrapper {
  /*   width: 700px; */
  width: 100%;
  margin: 0.5em 0px;
  display: flex;
  flex-direction: column;
}

.wrapper details {
  margin-bottom: 16px;
}

.wrapper details:last-child {
  margin-bottom: 0;
}

.edit-button {
  display: inline-block;
  padding: 0.25em;
  border: none;
  border-radius: 4px;
  background-color: #1abc9c;
  color: #fff;
  font-weight: bold;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  border: 2px solid transparent;
}

.edit-button:hover {
  background-color: #1fd0ad;
}

.edit-button:focus {
  outline: 0;
  background-color: #1fd0ad;
  border: 2px solid rgb(33, 150, 243);
}

.delete-button {
  display: inline-block;
  padding: 0.25em;
  border: none;
  border-radius: 4px;
  background-color: #e74c3c;
  color: #fff;
  font-weight: bold;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  border: 2px solid transparent;
}

.delete-button:hover {
  background-color: #ff5341;
}

.delete-button:focus {
  outline: 0;
  background-color: #ff5341;
  border: 2px solid rgb(33, 150, 243);
}

@media (max-width: 767px) {
  .wrapper {
    width: 100%;
    font-size: 0.75em;
  }

  .js-content {
    font-size: 0.5em;
  }

  .card {
    width: 97%;
  }

  .card .front {
    width: 95%;
  }

  .card .back {
    width: 95%;
  }
}

.user-url {
  text-decoration: none;
  color: black;
}

/* .user-url:hover {
  opacity: 0.75;
} */

.content {
  border: 1px solid black;
  border-radius: 0.25em;
  padding: 0.25em;
  line-height: 1.75em;
}

.content label {
  background-color: white;
  color: white;
  border-radius: 0.25em;
  padding: 0px 0.25em;
  margin: 0px 0.25em;
  cursor: pointer;
  border: 1px solid black;
}

.content input:checked+label {
  background-color: #EEEE;
  color: red;
}

input[name="content"] {
  display: none;
}

.checkbox {
  padding: 0.5em;
  margin: 0.5em;
  border: solid black 0.1em;
  width: 15em;
}

#check {
  display: none;
}

input[type=checkbox]#check:checked~.check_mark {
  background-color: #49BDF0;
}

/* The switch - the box around the slider */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 62px;
  height: 35px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 1;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0px;
  background: #fff;
  transition: .4s;
  border-radius: 30px;
  border: 1px solid #ccc;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.9em;
  width: 1.9em;
  border-radius: 16px;
  left: 1.2px;
  top: 0;
  bottom: 0;
  background-color: white;
  box-shadow: 0 2px 5px #999999;
  transition: .4s;
}

input:checked+.slider {
  background-color: #5fdd54;
  border: 1px solid transparent;
}

input:checked+.slider:before {
  transform: translateX(1.5em);
}

pre {
  margin: 1em 0;
  /* ブロック前後の余白 */
  padding: 1em;
  /* ブロック内の余白 */
  border-radius: 5px;
  /* 角丸 */
  background: #25292f;
  /* 背景色 */
  color: #fff;
  /* 文字色 */
  white-space: pre-wrap;
  /* はみ出たときに折り返す */
}

alert {
  width: 100%;
  background-color: #ff8080;
  color: white;
  border-radius: 0.25em;
  display: block;
  text-align: center;
  line-height: 2em;
  margin: 0.5em 0;
}

.box {
  width: fit-content;
  text-align: left;
  padding: 0.5em 1em;
  margin: 1em 0;
  border: solid 2px #000000;
  border-radius: 0.5em;
}

.box p {
  margin: 0;
  padding: 0;
}

.right-button {
  text-align: right;
}

.prev {
  margin-bottom: 0.5em;
  background-color: #B3C6E7;
  text-align: center;
  color: black;
}

.prev-link {
  text-decoration: none;
}

.next {
  margin-top: 0.5em;
  background-color: #FFA500;
  text-align: center;
  color: black;
}

.next-link {
  text-decoration: none;
}

/* === ボタンを表示するエリア ============================== */
.switchArea {
  line-height: 2em;
  /* 1行の高さ          */
  letter-spacing: 0;
  /* 文字間             */
  text-align: center;
  /* 文字位置は中央     */

  position: relative;
  /* 親要素が基点       */
  display: inline-block;
  margin-left: 1em;
  width: 5em;
  /* ボタンの横幅       */
  background: #fff;
  /* デフォルト背景色   */
}

/* === チェックボックス ==================================== */
.switchArea input[type="checkbox"] {
  display: none;
  /* チェックボックス非表示 */
}

/* === チェックボックスのラベル（標準） ==================== */
.switchArea label {
  display: block;
  /* ボックス要素に変更 */
  box-sizing: border-box;
  /* 枠線を含んだサイズ */
  height: 2em;
  /* ボタンの高さ       */
  border: 2px solid #999999;
  /* 未選択タブのの枠線 */
  border-radius: 1em;
  /* 角丸               */
}

/* === チェックボックスのラベル（ONのとき） ================ */
.switchArea input[type="checkbox"]:checked+label {
  border-color: #4db56a;
  /* 選択タブの枠線     */
}

/* === 表示する文字（標準） ================================ */
.switchArea label span:after {
  content: "OFF";
  /* 表示する文字       */
  font-weight: bold;
  padding: 0 0 0 16px;
  /* 表示する位置       */
  color: #999999;
  /* 文字色             */
}

/* === 表示する文字（ONのとき） ============================ */
.switchArea input[type="checkbox"]:checked+label span:after {
  content: "ON";
  /* 表示する文字       */
  font-weight: bold;
  padding: 0 16px 0 0;
  /* 表示する位置       */
  color: #4db56a;
  /* 文字色             */
}

/* === 丸部分のSTYLE（標準） =============================== */
.switchArea #swImg {
  position: absolute;
  /* 親要素からの相対位置*/
  width: 1em;
  /* 丸の横幅           */
  height: 1em;
  /* 丸の高さ           */
  background: #999999;
  /* カーソルタブの背景 */
  top: 0.5em;
  /* 親要素からの位置   */
  left: 0.5em;
  /* 親要素からの位置   */
  border-radius: 1em;
  /* 角丸               */
  transition: .2s;
  /* 滑らか変化         */
}

/* === 丸部分のSTYLE（ONのとき） =========================== */
.switchArea input[type="checkbox"]:checked~#swImg {
  transform: translateX(3em);
  /* 丸も右へ移動       */
  background: #4db56a;
  /* カーソルタブの背景 */
}

.setting_button {
  display: inline-block;
  padding: 4px;
  border: none;
  border-radius: 0.5em;
  background-color: #FFFFFF;
  color: #000000;
  font-weight: bold;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  border: 2px solid #000000;
  margin: 0.5em;
}

/*=============== MODAL ===============*/
.container {
  margin-left: 1rem;
  margin-right: 1rem;
}

.modal {
  height: 100vh;
  display: grid;
  place-items: center;
}

.modal__button {
  display: inline-block;
  background-color: hsl(240, 16%, 18%);
  color: #FFF;
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  transition: .3s;
}

.modal__button:hover {
  background-color: hsl(240, 16%, 12%);
}

.modal__container {
  position: fixed;
  top: 0;
  left: 0;
  background-color: hsla(240, 18%, 75%, .8);
  width: 100%;
  height: 100%;
  display: grid;
  align-items: flex-end;
  overflow: hidden;
  transition: all .3s;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;

  /*=== Effect 3 ===*/
  /* perspective: 1000px; */
}

.modal__content {
  position: relative;
  background-color: #FFF;
  text-align: center;
  padding: 3rem 2rem 2rem;
  border-radius: 1rem 1rem 0 0;
  transition: all .3s;

  /*=== Effect 1 ===*/
  transform: translateY(10%);

  /*=== Effect 2 ===*/
  /* transform: scale(.5) translateY(10%); */

  /*=== Effect 3 ===*/
  /* transform: rotateX(65deg) scale(.75) translateY(10%);
  transform-origin: 50% 100%; */
}

.modal__close {
  display: inline-flex;
  border-radius: .25rem;
  font-size: 1.5rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
}

.modal__title {
  font-size: 1.5rem;
  color: hsl(240, 8%, 15%);
  font-weight: 500;
}

.modal__description {
  margin-bottom: 1.5rem;
}

.modal__button-width {
  width: 90%;
}

.modal__button-link {
  display: block;
  margin: 1rem auto 0;
  background-color: transparent;
  color: hsl(240, 16%, 18%);
  font-weight: 500;
}

/* Show modal */
.show-modal {
  visibility: visible;
  opacity: 1;
}

.show-modal .modal__content {
  /*=== Effect 1 ===*/
  transform: translateY(0);

  /*=== Effect 2 ===*/
  /* transform: scale(1) translateY(0); */

  /*=== Effect 3 ===*/
  /* transform: rotateX(0) scale(1) translateY(0); */
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
.modal__content {
  margin: auto;
  width: 500px;
  max-width: 75%;
  border-radius: 1.25rem;
}

.description span {
  display: inline-block;
}

#like_mark {
  margin-top: 3px;
  cursor: pointer;
  color: #F06060;
}

#like_check {
  display: none;
}

.toggle_input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.toggle_label {
  width: 75px;
  height: 35px;
  background: #ccc;
  position: relative;
  display: inline-block;
  border-radius: 40px;
  transition: 0.4s;
  box-sizing: border-box;
}

.toggle_label:after {
  content: "";
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 100%;
  left: 0;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: 0.4s;
}

.toggle_input:checked+.toggle_label {
  background-color: #4BD865;
}

.toggle_input:checked+.toggle_label:after {
  left: 40px;
}

.toggle_button {
  position: relative;
  width: 75px;
  height: 35px;
  margin: auto;
}

@media (min-width: 768px) {
  /* .right-button {
    right: 5em;
  } */
}

@media (max-width: 767px) {

  /* .right-button {
    right: 0.5em;
  } */
  .modal__content {
    width: calc(100% - 1em);
  }
}

.memo-box {
  position: fixed;
  right: 5px;
  bottom: 5px;
  z-index: 9998 !important;
  overflow: hidden;
  border-radius: 1em;
  padding: 0.25em 0.5em;
  background: #ffa74f;
  color: #FFFFFF;
}

.thanks-button {
  display: inline-block;
  height: 50px;
  width: 50px;
  border-radius: 2em;
  border: 1px solid #F06060;
  color: #F06060;
  cursor: pointer;
  user-select: none;
}

.thanks-button .thanks-text {
  display: block;
  font-size: 10px;
}

.now_viewing {
  position: fixed;
  right: 0.75em;
  background-color: #ffffff;
  border-radius: 1em;
  border: 1px solid gray;
  padding: 0.75em;
  cursor: pointer;
  max-height: 50vh;
  overflow-y: scroll;
  overflow-x: hidden;
  -ms-overflow-style: none; /* IE対応 */
  scrollbar-width: none; /* Firefox 対応 */
  user-select: none;
}

.scroll-but-notscrollbar td::-webkit-scrollbar {
  display: none; /* Chrome, Safari,Edge対応 */
}

.viewing_user {
  margin-top: 0.5em;
  margin-right: 3em;
}

.now_viewing .viewing_user a {
  text-decoration: none;
  color: #000000;
}

.now_viewing summary {
  display: block;
  list-style: none;
}

/* 一部ブラウザで消えなかった場合は以下も追記 */
.now_viewing summary::-webkit-details-marker {
  display:none;
}

.now_viewing_text {
  display: none;
}

.now_viewing[open] .now_viewing_text {
  display: inline;
}