h3 {
  padding: 0.5em;
}

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

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

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

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

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クラスが付与されたときのスタイル */
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 {
  text-align: left;
  margin: 0.5em 0px;
  border: solid 1px lightgray;
  border-radius: 0.5em;
}

.content-url {
  text-decoration: none;
  color: black;
  display: block;
  top: 0;
  left: 0;
  height: 100%;
  margin: 0.5em 1em;
}

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;
}

/* === ボタンを表示するエリア ============================== */
.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: absolute;
  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;
}

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

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